Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17252 ディスカッション

Questa doesn't show UUT under Work

jeffrs20
ビギナー
2,730件の閲覧回数

This is for Quartus Prime Standard and Questa Sim (both licensed).

 

Under the test bench, the instantiated UUT should be present.  As I'm a novice I puzzled over what I was doing wrong.  However, I started a scratch project using a tutorial and got the same results (YouTube, Rania Hussein, Tutorial).  Aside from making syntax adjustments to use Verilog instead of System Verilog, I should have the identical results. 

 

Question - why is the UUT (and therefore the variables in it) not present?

 

thank you.

ラベル(1)
0 件の賞賛
1 解決策
sstrell
名誉コントリビューター III
2,580件の閲覧回数

When you generate a simulation script for an IP or an example design, it does.

元の投稿で解決策を見る

12 返答(返信)
sstrell
名誉コントリビューター III
2,722件の閲覧回数

Any screenshots?  Code?  Hard to figure out what's going on here without seeing anything you've done.

jeffrs20
ビギナー
2,715件の閲覧回数
Hello.  This is the simple tutorial source file.  This compiles without issues.  Attached is a screenshot of the Questa RTL sim, showing the testbench, but no DUT.

Thank you.
 
module fullAdder (A,B,cin,sum,cout);
 
input A,B,cin;
output sum, cout;
 
assign sum = A ^ B ^ cin;
assign cout = A & B | cin & (A ^ B);
 
endmodule
 
module fullAdder_testbench();
 
reg A,B,cin;
wire sum, cout;
 
fullAdder dut (A, B, cin, sum, cout);
 
initial begin
 
A = 0; B = 0; cin = 0; #10;
  cin = 1; #10;
B = 1; cin = 0; #10;
  cin = 1; #10;
A = 1; B = 0; cin = 0; #10;
  cin = 1; #10;
B = 1; cin = 0; #10;
  cin = 1; #10;
  
$stop;
 
end //initial 
 
endmodule
 
 
sstrell
名誉コントリビューター III
2,711件の閲覧回数

You say "compiles without issues," but do you mean in Quartus or in Questa?  vsim only starts the simulator.  You have to first compile your code in the Questa GUI or with the vlog command.  You can generate a simulation script in Quartus that does this (Tools menu).

jeffrs20
ビギナー
2,701件の閲覧回数

Quartus completes the compile.  I attached a copy of the entire log but the final line is:

Info (293000): Quartus Prime Full Compilation was successful. 0 errors, 18 warnings

In Questa, here is a fresh RTL Sim called from Quartus.  I attached the log file showing the tb was compiled.

 

jeffrs20_1-1725914912186.png

 

 

sstrell
名誉コントリビューター III
2,698件の閲覧回数

Successful compilation in Quartus doesn't really matter for a simulation though it's still good to know it compiles successfully.

Now that you've compiled in Questa and started the simulation, you have to add waveforms to the Wave view and then actually advance the simulation (run command).

jeffrs20
ビギナー
2,692件の閲覧回数

Yes, I understand.  But I expect the DUT to be listed between fullAdder_testbench and #INITIAL#18.   I would select the DUT and the Objects would be listed, ready to be dragged into the Wave window.  However, no DUT is present.

 

Here is a screenshot of the YouTube tutorial.  Note that unlike my project, the DUT is present. 

 

jeffrs20_0-1725915755505.png

 

sstrell
名誉コントリビューター III
2,651件の閲覧回数

In Questa, you have to add the +acc option so the command is

vsim work.fullAdder_testbench -voptargs=+acc

In the GUI, this is

Screenshot 2024-09-09 at 2.53.32 PM.png

This is a change from Modelsim where this wasn't necessary.

jeffrs20
ビギナー
2,594件の閲覧回数

I found this option.  It looks slightly different than yours.  But when I change to Apply full...    The OK box is grayed out.   I also looked inside Quartus to see if there is an option to pass this to the simulator but couldn't find anything applicable.

jeffrs20_0-1725920258687.png

 

sstrell
名誉コントリビューター III
2,583件の閲覧回数

No, after compiling, do Simulate menu -> Start Simulation and click Simulation Options.  You also have to select the top-level design unit on the Design tab there.

jeffrs20
ビギナー
2,580件の閲覧回数

Ah.   That worked!   But why doesn't Quartus have an option to pass this option directly to Questa?

sstrell
名誉コントリビューター III
2,581件の閲覧回数

When you generate a simulation script for an IP or an example design, it does.

jeffrs20
ビギナー
2,577件の閲覧回数

Thank you very much!

 

Jeff

返信