马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
本帖最后由 rsw 于 2023-6-14 17:41 编辑
quartus ii 编译没问题,但是modelsim仿真就是没显示,是不是没调接口。
如果是芯片,求助一下,有没有推荐的芯片接口原理图,在下小白一枚,多多指教
这是代码
ini.v
- module ini(
- input ai, bi,
- output so_lose, so_get, so_normal
- );
- assign #20 so_lose = ai & bi ;
- assign #5 so_get = ai & bi ;
- assign so_normal = ai & bi ;
-
- endmodule
复制代码 ini_tb.v
- `timescale 1ns/1ns
- module inia ;
- reg ai, bi ;
-
- initial begin
- ai = 0 ;
- #25 ; ai =1 ;
- #35 ; ai =0 ;
- #40 ; ai =1 ;
- #10 ; ai =0 ;
- end
-
- initial begin
- bi = 1 ;
- #70 ; bi =0 ;
- #20 ; bi =1 ;
- end
-
- //at proper time stop the simlation
- initial begin
- forever begin
- #100 ;
- //$display("---gyc---%d", $time);
- if ($time >= 1000) begin
- $finish ;
- end
- end
- end
-
- endmodule
复制代码 代码来自这个网站
runoob
|