Questions tagged [questasim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
73 views

Simulation only code and Synthesis only code in QuestaSim

Pragma exist to tell the synthesis tool to ignore lines or blocks of code, using this: -- synthesis translate_off ... code to ignore -- synthesis translate on ...
  • 1,557
1 vote
1 answer
224 views

Multiple wire type objects declaration Verilog

I get an error everytime I try to use the same line to declare more than one wire type, is this because they are of different size (but I get the error even when they're of the same size, declaring ...
  • 357
2 votes
1 answer
176 views

How to set QuestaSim/ModelSim to print time value in arbitrary unit?

Here is the code: ...
  • 1,557
0 votes
1 answer
609 views

How to randomize the seed-number in Modelsim?

In EDA-Playground, I know that we use +ntb_random_seed_automatic to randomize the seed number. However, I'm not sure how I'd go about doing that in Modelsim so that I have a random seed number. I was ...
0 votes
1 answer
296 views

For QuestaSim, what's the difference between vsim.exe and vsimk.exe? [closed]

For QuestaSim, what's the difference between vsim.exe and vsimk.exe under C:\questasim64_2020.4\win64\vsimk.exe? for some reason, in order to invoke QuestaSim in batch mode from the Powershell prompt, ...
  • 183
0 votes
0 answers
664 views

Syntax error in SystemVerilog based UVM testbench

I have been getting the following syntax error on compilation- ...
  • 9
2 votes
1 answer
700 views

Error with Assert statement in Verilog

I have the following assert statement in a for loop, which is within a generate block: ...
0 votes
2 answers
860 views

Is there a way to define enumeration for certain signals after simulation?

I have run some verilog simulations in questa simulator and while viewing the waveforms i see that it would have been easier for me to debug the signals had there been some enums defined for them (To ...
  • 29
0 votes
1 answer
3k views

VHDL: reading integers from a text file, storing them in array, and writing in text format again

In a certain simulation testbench using questasim, I am trying to read the files with integers numbers which looks like, ...
  • 3
0 votes
1 answer
370 views

A question about randomization in verilog

I am now working on a verilog testbench file and I want to get a random value in my code, but I have found that Questa Sim uses the same seed again and again. I have read through $random in Verilog ...
0 votes
1 answer
418 views

Is there a way to suppress the output when compiling multiple vhd files except for errors?

I have a compilation script I run before simulating on QuestaSim 10.7: ...
  • 235
4 votes
1 answer
4k views

VHDL: Non-locally static choice warning

I have the following code: constant HALF_RANGE: unsigned(RANGE_WIDTH-1 downto 0) := (RANGE_WIDTH-1 => '1', others=>'0'); where RANGE_WIDTH is a generic of ...
  • 2,205
0 votes
1 answer
455 views

"Numeric value exceeds 32-bit capacity" error in QuestaSim

In the testbench for a SystemVerilog module, I have the following array declaration and initialization: ...
1 vote
2 answers
2k views

ModelSim: Why can't I see generics in simulation?

When I start simulation, I can see signals and ports in the objects window for what I have selected in the Sim window. Besides this, I can see processes for the same thing in the processes window. ...
  • 10.1k