打印

请教一下测试向量的写法

[复制链接]
1394|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
limee|  楼主 | 2007-5-18 00:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
下面的VHDL代码,testbench该怎么写?
可以贴一下吗?

-- D触发器 

libarary ieee ;
use ieee std_logic_1164.all ;
entity tdff is
   port ( clk, d : in std_logic ;
          q : out std_logic ) ;
end tdff ;
architecture behaviour of tdff is
begin
   process(clk)
   begin
      if ( clk'event and clk = '1' ) then
      q <= d ;
   end process ;
end behaviour ;  

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

301

主题

475

帖子

0

粉丝