lhkhhk

程序:

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;

 

分类:

技术点:

相关文章: