- 1
- 0
- 约小于1千字
- 约 14页
- 2018-10-29 发布于天津
- 举报
电子科技大学“数字逻辑设计及应用”数字逻辑x-3知识课件.ppt
Time simulation;assign #3 a1=a;assign #3 a2=a;
assign #3 b1=b;assign #3 b2=b;
assign #3 c1=c;assign #3 c2=c;
assign #19 w1=~(a1b1);
assign #19 w2=~(b2c1);
assign #19 w3=~(a2c2);
assign #40 f=~(w1w2w3);
endmodule;Simulation tool: Modelsim; File/New/Project;Name your project and its path;File/New/Source/Verilog;Save your design:name and path;Compile your design;Design/load Design;Open the simulation window:add wave *;force -repeat 200 ns a 0 0 ns, 1 100 ns
force -repeat 400 ns b 0 0 ns, 1 200 ns
force -repeat 800 ns c 0 0 ns, 1 400 ns;RUN and check the results
原创力文档

文档评论(0)