Questions tagged [modelsim]

ModelSim is hardware simulation and debug environmment targeted at ASIC and FPGA designs with native support for Verilog, SystemVerilog for design, VHDL, and SystemC.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

ModelSim transcript is not showing error log properly

ModelSim simulation gives me Error loading design error only I can't find out what the is problem. As far as I know, ModelSim should print such blue messages like ...
user avatar
-1 votes
0 answers
35 views

Undefined output after Vivado / ModelSim Simulation

I am implementing a cryptographic algorithm in vhdl and I’ve run into a dead end. This algorithm consists of an NLFSR (nlfsr) and an output function (z_function), that are connected as components in ...
user avatar
  • 1
1 vote
1 answer
53 views

SystemVerilog output issue with "m" in a 5-to-1 Mux

I'm having an issue that I can't resolve on my own. I nested a 2-to-1 mux module inside of this 5-to-1, and no errors occur. Yet my output "m" will only ...
user avatar
  • 21
0 votes
0 answers
13 views

Microsemi FPGA Post-Layout Simulation know-hows

I currently want to simulate a big design in the Microchip ProASIC3E FPGA which contains full usage of internal SRAM memory and numerous counters in logic cells. The design is clocked at 40MHz and has ...
user avatar
0 votes
0 answers
22 views

Modelsim Image Export Do Command

Is it possible to export a waveform in Modelsim as an image using a do command? I am able to do this through File->Export->Image, but I would like to automate the process to just spit out the ...
user avatar
1 vote
1 answer
44 views

Problem with back annotated netlist signals naming for simulation purposes in Modelsim

Some of the labels used in back-annotated netlist descriptions generated by Microchip (Microsemi) Libero rely on forward slash naming conventions as shown below ...
user avatar
  • 55
-1 votes
1 answer
80 views

Experiencing issues with VHDL Code ModelSim: Wave Generation

I'm working on this project where I'm basically supposed to generate square wave (and other types of wave) using VHDL. The time period can be adjusted to either increase or decrease its frequency, and ...
user avatar
  • 211
-1 votes
1 answer
165 views

Modelsim: Debugging "NUMERIC_STD.TO_UNSIGNED: Vector truncated"

I might be able to post some code if needed, it's hard though cause the code is on a different machine. But I'm looking more a general approach to debugging this warning "NUMERIC_STD.TO_UNSIGNED: ...
user avatar
  • 1
1 vote
1 answer
81 views

Signals acting weirdly in VHDL

I've always been told that a signal updates its values after a wait statement, or after a rising edge if we have for example if rising_edge(clk) then but in this testbench, after the first wait ...
user avatar
-1 votes
1 answer
77 views

Error message vsim-3171 keeps popping up in Modelsim DE 2021.1 even though it was solved in Modelsim ME 10.2c

I have a test bench where I'm using a SystemVerilog bind construct. My test bench follows a similar organization to the one described at this link Every time I run it, error vsim-3171 shows up. I came ...
user avatar
  • 55
0 votes
1 answer
198 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 ...
user avatar
1 vote
0 answers
43 views

Initializing feedback signal in ModelSim simulation

I'm trying to simulate a MOUSETRAP asynchronous pipeline for FPGA. For the control stage, I need to implement the following circuit: DELAY is a delay element which I have correctly implemented using ...
user avatar
0 votes
1 answer
136 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, ...
user avatar
  • 173
2 votes
1 answer
195 views

Why is my counter not working? (Verilog)

I'm trying to create a counter that will display how many 1's are in the inputs. This is a little piece of code in the program: ...
user avatar
  • 143
1 vote
1 answer
299 views

I'm trying to build a 16-bit adder in Verilog but my output and carryout always have a value of X

...
user avatar
0 votes
0 answers
59 views

Linking/Compiling lib for ModelSim

I'm trying to simulate a SerDes for the Lattice ECP5 FPGA and have an issue linking the correct lib in ModelSim. Error message: ...
user avatar
  • 159
1 vote
1 answer
238 views

How to manage multiple testcases in a VHDL testbench

I'm trying to implement a testbench for a relatively complex module and I need multiple test cases to cover all the functionality. I'd like to find an elegant way to perform multiple testcases without ...
user avatar
  • 625
0 votes
2 answers
89 views

Unexpected change when reading input signals in a VHDL Finite State Machine

I implemented a FSM in vhdl using two processes; A sync process for state transition ...
user avatar
  • 7
1 vote
1 answer
205 views

Radix-4 Booth's Multiplier verilog code error

I wrote the code for radix 4 booth's multiplier. But, I am getting 2 errors. I am not able to solve it. Could you please help? The errors are: Error: C:/modelsim_dlx64_2021.1/examples/assignment/...
user avatar
  • 13
0 votes
0 answers
59 views

how use text file as input for sinewave and produce sample each clock in tesbench(VHDL)?

so there error is Fatal error in process sinewave_proc at C/..../sin_from_text_tb.vhd at if if not endfile(file_sinewave) I have made a very simple code in vhdl so I can understand how reading a file ...
user avatar
  • 301
2 votes
1 answer
279 views

Where did I code my multiplier wrong?

I've wrote a verilog code for Multiplier (8bit). I'm not getting the right result. Kindly tell me where i went wrong. ...
user avatar
1 vote
1 answer
65 views

Coarse counter giving incorrect pulse length measurements at high frequencies

I am using a simple counter to measure pulse length. I have copied the code below, but the counter increments by 1 at each positive edge of the clock. Once the counter is done incrementing for that ...
user avatar
0 votes
1 answer
814 views

How to view the internal signals of module in ModelSim using the testbench?

I have looked over this tutorial (Tutorial - Using Modelsim for Simulation, for Beginners. ) how to add waves and write test benches for VHDL module I looked over some answers as well like this one to ...
user avatar
  • 301
0 votes
1 answer
37 views

Unexpected behaviour of data memory in modelsim testbench

I am describing a very simple ram memory in VHDL and observing strange behaviour which I do not understand nor am able to debug. I have similar code written elsewhere and I suspect that rewriting it ...
user avatar
  • 1
1 vote
1 answer
56 views

How can I make Verilog HDL ModelSim test bench for a simple ripple adder circuit output an addition table instead of a long list of every calculation?

I've completed my assignment and I'd like to make the output look something like this, with one table for sum output and one table for carry output: ...
user avatar
0 votes
1 answer
170 views

Does Quartus support UVM in files with .sv extension?

I want to learn UVM later (i am starting with verilog first, systemverilog is next) but i have this doubt in my head, i have seem examples in the web but they use Modelsim, so my doubt is, if i make ...
user avatar
  • 35
0 votes
2 answers
384 views

Errors in VHDL code

The VHDL code was written by me for a 4-bit PIPO DFF register. I have been encountering some errors when i did so. Kindly check the code and errors below. ...
user avatar
0 votes
0 answers
95 views

How to log Fixed-size Array with Mentor Modelsim/Questa in a tcl with add wave *

I have Fixed-size Array in port Out but my wildcard doesn't include them and I didn't find anything in the manual. ...
user avatar
  • 305
1 vote
1 answer
264 views

How do i read the RGB values of an image in Verilog from a hex file generated in Matlab for processing?

I have used Matlab to generate hex file for an image (1200 * 900 resolution). The hex file is like There are such 3240000 rows. How do i read this in verilog to performing some processing (filtering ...
user avatar
-1 votes
1 answer
2k views

Verilog code for construction of 4x16 decoder using 3x8 decoder [closed]

This is my 3x8 verilog module: ...
user avatar
1 vote
0 answers
112 views

Difference in SystemVerilog-2005 HDL simulation behavior between Quartus Prime Lite (20.1) and ModelSim-Intel Starter Edition(2020.1)

A SystemVerilog module using an always@ block with a gated trigger does not compile in Quartus Prime Lite (20.1). Quartus Prime reports the following compiler error message: Error (10170): Verilog ...
user avatar
  • 141
1 vote
0 answers
178 views

Simulation of IP Core using ModelSim

I try to use IP core in Xilinx ISE 14.2. When the simulation done with ISim it works fine. Now I need to do the simualtion with ModelSim SE-64 10.7. I compile HDL Simualtion Libraries Fig.1. I run ...
user avatar
0 votes
0 answers
234 views

ModelSim does not run until "$stop" command after editing my testbench

I keep running into this issue where my code stops running before the "@stop" command. This only occurs whenever I add code in Libero and then go back to ModelSim. When I go to simulate in ...
user avatar
  • 67
0 votes
1 answer
284 views

Why is my 8-bit counter only counting until 127?

I recently coded an 8-bit counter in Libero and simulated it in ModelSim using Verilog. When I simulated my design, it only went up to 127. Shouldn't an 8-bit counter go up to 255? Here is my HDL Code:...
user avatar
  • 67
0 votes
1 answer
192 views

Writing to a Register happens one or two clock cycles after asserting write enable?

I am using the code shown here Verilog: Writing to a Register Happens A Clock Cycle Late and that user posted a picture where output would change 2 cycles after asserting write enable. That post got ...
user avatar
1 vote
0 answers
2k views

How to use VHDL Entity in logisim evolution?

I'm new in Logisim and VHDL. I'm trying to use VHDL entity-component but the output always is "x". Then I read a document ( this link ) that said Logisim requires ModelSim to use this feature. So I ...
user avatar
  • 11
2 votes
1 answer
1k views

Verilog output is hiZ in testbench

I'm new to verilog and modelsim. I'm having trouble with my AND and OR modules in this particular testbench. The output is always Z(hi impedance) ...
user avatar
0 votes
1 answer
269 views

Help on writing test bench for up counter in verilog

preamble: I think I have enough understanding of logic circuits and enough experience in programming from other languages(C, python, etc.) However, I am very new at Verilog and also have never used ...
user avatar
  • 1,966
1 vote
2 answers
88 views

Sequential logic in VHDL

Does anyone know of a way I can use sequential statements in VHDL without using the traditional if, case, when statements? I am building an 8 bit word splitter that will then pass a 4 bit nibble to ...
user avatar
1 vote
1 answer
216 views

vhdl output pulse

I have another question regarding some VHDL, I am trying to create a pulse of 5ms output for (in my code a_full) however I am struggling to find any information on how to generate this, basically I ...
user avatar
0 votes
3 answers
249 views

ModelSim wave window showing zero time transitions

I'm new to verilog and so ModelSim. There's a problem or actually may not be a problem that I have noticed. It seems to me that ModelSim wave window imposes by default a transition at time zero on ...
user avatar
  • 1,734
0 votes
1 answer
243 views

Input CLK Keeps Showing As Hi-Z on ModelSim

I am writing some basic verilog code that blinks an LED at some frequency. The code for the design file is the following: ...
user avatar
0 votes
1 answer
373 views

I am not getting output I want in ModelSim - Altera (perhaps something related to timing requirements not being met?)

I am writing some basic verilog code that blinks an LED at some frequency. The code is the following: ...
user avatar
-1 votes
1 answer
1k views

My work directory in ModelSim is always empty. How can I resolve this problem?

I'm new to Verilog. I made a new ModelSim project and kept the default directory to work. Then I added .v (Verilog) files to the project. And after that I compiled the files. Compilation was ...
user avatar
1 vote
1 answer
825 views

Verilog Missing connection for port

I was creating a circuit using two dual input AND gates into a dual input NOR using three modules and module instantiation. The first module is for the AND inputs and the second module is for the ...
user avatar
0 votes
1 answer
3k views

How to come out of the transcript window of Modelsim which is stuck?

I am running a Modelsim script and the transcript window gets stuck. I have tried the following to go to the next line in the transcript window without any success. Simulate > End simulation Simulate ...
user avatar
  • 155
1 vote
0 answers
241 views

Power analysis using Synopsys Design Compiler

I am trying to generate power report using Synopsys DC compiler. At first I have generated VCD file using Modelsim simulator, which I have converted to SAIF file using "vcd2saif" command. Then I ...
user avatar
  • 11
1 vote
1 answer
404 views

Why is this VHDL pseudo random number generator not working as expected?

I'll start off by saying I have about 2 days experience in VHDL so there's a strong chance my code is horrible. I would appreciate any tips on better VHDL practice. I am busy trying to simulate a ...
user avatar
  • 809
0 votes
1 answer
3k views

Removing modelsim error

I am trying to simulate a simple inverter in verilog using modelsim 10.7 version. While compiling the code I am getting the -novopt error (error code 12110). As per user manual page 80; the -novopt ...
user avatar
0 votes
1 answer
92 views

Set alternative editor for ModelSim

I want to set an alternative editor in ModelSim. I tried How to configure my favorite editor in ModelSim? and after I set the altEditor I get "unknown command external_editor". Unfortunately my ...
user avatar
  • 105