Top "Verilog" questions

Verilog is a hardware description language (HDL) used to model electronic systems.

How to NOT use while() loops in verilog (for synthesis)?

I've gotten in the habit of developing a lot testbenches and use for() and while() loops for testing purpose. Thats …

loops verilog synthesis
Random number generation on Spartan-3E

I need to generate pseudo-random numbers for my genetic algorithm on a Spartan-3E FPGA and i want to implement …

hardware random verilog fpga
How to make the 2-complement of a number without using adder

In two-complement to invert the sign of a number you usually just negate every bit and add 1. For example: 011 (3) 100 + 1 = 101 (-3) …

vhdl verilog fpga twos-complement
Trying to blink LED in Verilog

I have a CPLD with a 50Mhz clock. This is my code: module FirstProject(clk, LED); output LED; input clk; …

verilog timing intel-fpga
How can I calculate propagation delay through series of combinational circuits using Verilog and FPGA?

I'm new to FPGA and HDL but I'm trying to learn and cant figure this out. How can I calculate …

verilog fpga
How do I run the verilog code on a testbench?

I wrote the code for a ripple carry adder. Testbench is also available. How do I run this test bench …

verilog system-verilog iverilog
Arithmetic shift acts as a logical shift, regardless of the signed variable

I've got a register declared as so: logic signed [15:0][2:0][15:0] registers; When I place a 2's compliment number into the array …

verilog bit-shift system-verilog
is there a verilog tutorial where you build a very simple microprocessor?

I'm a programmer wishing to learn verilog. What would be amazingly neat would be a tutorial where one constructs a …

verilog fpga microprocessors
What is the difference between using an initial block vs initializing a reg variable in systemverilog?

What is the difference between the following two examples with regards to simulation? A) reg a; initial a = 1'b0; and …

verilog simulation system-verilog
Passing hierarchy into a Verilog module

I have a "watcher" module that is currently using global hierarchies inside it. I need to instantiate a second instance …

verilog