iriszhu
驱动牛犊
驱动牛犊
  • 注册日期2003-10-06
  • 最后登录2009-05-08
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1018回复:1

verilog中是否一定要有输出

楼主#
更多 发布于:2004-03-19 16:43
我敲了一个事件控制的例子,里面只有一个两个变量event  e1,e2;可是编译老通不过,错误是:
 project has no output or bidirectional pins in the top-level design file
我把这个简单的源程序贴出来,大家帮我看看

module event_control;
 event e1,e2;
 initial @e1 begin
$display("I am in the middle");
->e2;
 end

initial @e2
$display("I am in the last");

initial begin
 $display("I am the first");
->e1;
end

endmodule

jst7792
论坛版主
论坛版主
  • 注册日期2001-12-10
  • 最后登录2006-11-16
  • 粉丝0
  • 关注0
  • 积分3分
  • 威望1点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-03-23 08:43
没有输出的模块对编译软件来说相当于什么都没有,综合过程中会删除这些逻辑。
兄弟们,给点分吧
游客

返回顶部