您的位置:控制工程论坛网论坛 » 嵌入式系统 » [FPGA/CPLD]四D触发器:74175

mcumao

mcumao   |   当前状态:离线

总积分:1503  2025年可用积分:0

注册时间: 2006-01-20

最后登录时间: 2007-06-11

空间 发短消息加为好友

[FPGA/CPLD]四D触发器:74175

mcumao  发表于 2006/4/4 14:09:36      1447 查看 0 回复  [上一主题]  [下一主题]

手机阅读

-- Quad D-Type Flip-flop-- This example shows how a conditional signal assignment statement could be used to describe sequential logic(it is more common to use a process). -- The keyword 'unaffected' is equivalent to the 'null' statement in the sequential part of the language. -- The model would work exactly the same without the clause 'else unaffected' attached to the end of the statement. -- uses 1993 std VHDLlibrary IEEE;use IEEE.Std_logic_1164.all;entity HCT175 is     port(D : in std_logic_vector(3 downto 0);         Q : out std_logic_vector(3 downto 0);         CLRBAR, CLK : in std_logic);end HCT175;architecture VER1 of HCT175 isbegin   Q <= (others => '0') when (CLRBAR = '0')             else D when rising_edge(CLK)            else unaffected;end VER1;
1楼 0 0 回复