第三章VHDL语言基础研讨.ppt

第三章VHDL语言基础研讨

VHDL程序的其它构件 VHDL程序的其它构件 块 块(BLOCK)是VHDL中的一种划分机制,它允许设计者将一个模块划分成数个区域 注意:BLOCK方式的划分结构只是形式上的,在综合后硬件结构的逻辑层次不会增加,跟元件例化是不同的 块标号:BLOCK [(防护表达式)] 接口说明 类属说明 块说明部分; BEGIN 并行语句 END BLOCK[块标号]; VHDL程序的其它构件——块 块——example library ieee; use ieee.std_logic_1164.all; entity example3 is port ( d , clk : in bit ; q, qb: out bit); end example3; architecture latch_bus of example3 is begin b1: block ( clk =‘1’) --()是防护表达式为布尔型 begin q = guarded d after 5 ns; --由保留字guarded引导防护语句 qb = not (d) after 7 ns; end block b1; end

文档评论(0)

1亿VIP精品文档

相关文档