- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to get Quartus simulate something for me. Here is the code: module muxi(out,i0,i1,i2,i3,s1,s0); output out; input i0,i1,i2,i3,s1,s0; wire s1n,s0n; wire y0,y1,y2,y3; not(s1n,s1); not(s0n,s0); and(y0,i0,s1n,s0n); and(y1,i1,s1n,s0); and(y2,i2,s1,s0n); and(y3,i3,s1,s0); or(out,y0,y1,y2,y3); endmodule module Training; reg IN0,IN1,IN2,IN3; reg S1,S0; wire OUTPUT; muxi mymux(OUTPUT,IN0,IN1,IN2,IN3,S1,S0); initial begin IN0=1; IN1=0; IN2=1; IN3=0;# 1 $display("IN0=%b, IN1=%b, IN2=%b, IN3=%b \n", IN0,IN1,IN2,IN3); S1=0; S0=0;# 1 $display("IN0=%b, IN1=%b, OUTPUT=%b \n", S1,S0,OUTPUT); S1=0; S0=1;# 1 $display("IN0=%b, IN1=%b, OUTPUT=%b \n", S1,S0,OUTPUT); S1=1; S0=0;# 1 $display("IN0=%b, IN1=%b, OUTPUT=%b \n", S1,S0,OUTPUT); S1=1; S0=1;# 1 $display("IN0=%b, IN1=%b, OUTPUT=%b \n", S1,S0,OUTPUT); end endmodule My question is: where can I see the window where he displays the values specified in $display??? ThanksLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The quartus simulator will only do gate level simulations, so all the system calls will be stripped out through compilation. You need an RTL simulator (like modelsim) to see $display outputs.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page