作者clanguage (C语言)
看板Electronics
标题[问题] Verilog 的 testbench
时间Sun Oct 11 23:38:30 2009
请问一下 Verilog 写 testbench 时
为何 input 都宣告成 reg, output 都宣告成 wire
跟写 module 时不同?
新手一问, 恳请指教, 感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.169.111.184
1F:推 cmh317:因为TB里 input 是给到你要测的module内 你在TB里面要设定 10/12 00:58
2F:→ cmh317:他的值. 而output 是从你要测的module output拉出来看 10/12 00:59
3F:→ cmh317:所以要用wire 10/12 01:00
4F:推 jamtu:楼上大神 10/12 01:01
5F:推 horsehead:如果是双向pin还是要宣告成wire喔 10/12 12:02
6F:→ clanguage:感谢 10/12 16:19