Questions tagged [icarus]

Icarus Verilog is an implementation of the Verilog HDL or hardware description language.

Icarus Verilog is the same as

70 questions
1
vote
1 answer

Error opening .vcd file. No such file or directory

My Verilog code is stored in C:\FA. There are three files: FA.v, fa.vvp, TM_FA.v I followed my book steps. iverilog -o fa.vvp vvp fa.vvp finish getwave fa.vcd & When I use getwave fa.vcd & to simulate it, and then it shows: Error opening .vcd…
Kias
  • 47
  • 5
1
vote
1 answer

Behavioral Modeling is not a valid l-value in testbench.test

I am trying to use two binary inputs A and B to get the binary output which is the F just like the truth table below, but it keeps saying: main.v:36: error: F3 is not a valid l-value in testbench.test main.v:27: : F3 is declared here as…
1
vote
1 answer

Why the memory content is not read? - verilog digital system design

I created a microsystem which is composed of two clocked SRAMs, one designed for storing instruction-codes, and another to store some output values. The instruction SRAM has an interface module, named "user" which provides a mechanism to ease the…
pauk
  • 350
  • 4
  • 15
1
vote
1 answer

I see undefined output sequences reading a memory in simulation

I have a question related to the implementation of a clocked SRAM memory which is is supposed to store data written by user and then display the memory content. In addition, I created a module named display which eases the reading process so that…
pauk
  • 350
  • 4
  • 15
1
vote
1 answer

Can't see anything when accessing RAM contents in simulation

I encountered an issue trying to design a SRAM memory. To be more specific, the memory is clocked, has a write enable - when high, one could write data and when low, one could read data - , an address input, which specifies the memory address…
pauk
  • 350
  • 4
  • 15
1
vote
1 answer

Cannot load/store data from/in SRAM: read data is unknown

I have a question related to a Verilog implementation of an SRAM memory. Module sram_1port is supposed to be a clocked address addressable SRAM memory which has a read enable signal and a write enable signal. Module control_sram is supposed to…
pauk
  • 350
  • 4
  • 15
1
vote
1 answer

Can't create a 'real' type array in Verilog

I've tried creating a 'real' type value array in the following way in Icarus Verilog: parameter width = 10; shortreal b [width-1:0] = {0.0181,0.0487,0.1227,0.1967,0.2273,0.1967,0.1227,0.0487,0.0181}; Gives the following error: error: Cannot assign…
Ginjas
  • 13
  • 2
1
vote
2 answers

RisingEdge example doesn't work for module input signal in Chisel3

In Chisel documentation we have an example of rising edge detection method defined as following : def risingedge(x: Bool) = x && !RegNext(x) All example code is available on my github project blp. If I use it on an Input signal declared as…
FabienM
  • 3,421
  • 23
  • 45
1
vote
2 answers

Incomprehensible For Loop Icarus Verilog

I am trying to follow the basic example provided here. https://www.youtube.com/watch?v=13CzlujAayc&list=PLUtfVcb-iqn8ff92DJ0SZqwsX4W1s_oab&index=17 Here is my exact code maj3.v module maj3(Out, A, B, C); input A, B, C; output Out; wire…
Jack Frye
  • 583
  • 1
  • 7
  • 28
1
vote
1 answer

iverilog testbench error: input is declared as wire, but it isn't

I am very new to iverilog and am creating a counter to reduce a 100Mhz clock frequency to something easier to work with, as part of a larger project. I found some code that does that and so I tried to write a testbench for it. Here is the code I…
Ross Satchell
  • 341
  • 4
  • 14
1
vote
1 answer

Icarus Verilog crash while compiling dynamic memory module

This is my first post on StackOverflow. I'm a Verilog newbie, though I have significant experience with Python, C, and C++. I am using Icarus Verilog version 10.1.1 on Windows 10, and am trying to write a dynamic memory allocator. For some reason,…
Anonymous1847
  • 2,568
  • 10
  • 16
1
vote
2 answers

How to convert a VHDL code in Verilog using Icarus Verilog?

I can't find an example in doc to convert a VHDL code to Verilog with icarus. I found how to do verilog to VHDL here. I tried to modify the command to do VHDL convertion on this code : $ iverilog -tvlog95 -o button_deb.v button_deb.vhdl…
FabienM
  • 3,421
  • 23
  • 45
1
vote
1 answer

Verilog testbench code using gEDA and iVerilog

My assignment is to code a simple 2 to 4 decoder and then display the possible outcomes and waveform. I am using the gEDA suite along with Icarus Verilog (iVerilog) as a compiler and GTKWave for the waveform. This is my first time coding with…
milleraj66
  • 35
  • 9
1
vote
1 answer

Infinite loop when simulating a Program Counter design with Icarus Verilog

I am implementing a simple Program Counter adder with the following prototype: module program_counter(input enable_count, input enable_overwrite, input[31:0] overwrite_value, …
Patrick Samy
  • 156
  • 1
  • 10
1
vote
2 answers

how can I convince iverilog that the vpi is a system function and not a task

I am trying to use a vpi function in iverilog that will return a value to the verilog test bench after it is called. It compiles ok but returns the following when I run Error: $flash_dat() is a system task, it cannot be called as a function. I have…
vinay samuel
  • 187
  • 1
  • 12