Top "Verilog" questions

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

BCD Adder in Verilog

I am trying to write a BCD Adder in Verilog, but I am having trouble with one of the modules. …

sum verilog hdl bcd
Error "procedural assignment to a non-register result is not permitted"

I'm getting the error [Synth 8-2576] procedural assignment to a non-register result is not permitted ["lpm_mult.v":29] What am …

verilog vivado
4 bit adder-subtractor in verilog

I am writing verilog code for 4 bit adder subtractor. I am using structural design. At first I have written verilog …

verilog hdl iverilog
How can I assign a "don't care" value to an output in a combinational module in Verilog

Imagine we want to describe a combinational circuit that satisfy the following truth table: a b | s0 s1 s2 s3 …

verilog
How to define and initialize a vector containing only ones in Verilog?

If I want to declare a 128 bit vector of all ones, which one of these methods is always correct? wire [127:0] …

verilog system-verilog register-transfer-level
Triggering signal on both edges of the clock

Design requires a signal to be activated at specific circumstance on rising edge of the clock, and deactivated at another …

verilog clock fpga
How to create a string from a pre-processor macro

I have a preprocessor macro that represents a hierarchical path into my design. Example: `define HPATH top.chip.block I …

macros verilog system-verilog
implementing a processor ( mips single cycle )

i have a mini project , in this project i need to implement a MIPS single cycle processor by Verilog. here …

verilog computer-architecture mips32
How do I convert a number to two's complement in verilog?

I am trying to design a 4-bit adder subtracter in verilog. This is only the second thing I have ever …

verilog circuit hdl
Assert statement in Verilog

I'm completely new to Verilog, so bear with me. I'm wondering if there is an assert statement in Verilog. In …

assert verilog