与非门

D触发器+与非门

时光怂恿深爱的人放手 提交于 2019-12-04 06:25:38
程序: entity dand is port( a,b,clk:in bit; q:out bit ); end ; architecture bhv of dand is signal temp:bit; begin temp<=a nand b; process(clk)--尽管process内部的语句是顺序执行的,但是process作为一个整体和process外部的其他语句是并发执行的。 begin if clk'event and clk='1' then q<=temp; end if; end process; end bhv; 来源: https://www.cnblogs.com/lhkhhk/p/11837481.html