Top "Hdl" questions

HDL is a Hardware Description Language, a programming language used to design chips.

What is the difference between == and === in Verilog?

What is the difference between: if (dataoutput[7:0] == 8'bx) begin and if (dataoutput[7:0] === 8'bx) begin After executing dataoutput = 52'bx, the second …

verilog hdl
What is the difference between reg and wire in a verilog module

What is the difference between a reg and a wire? When are we supposed to use reg and when are …

verilog hdl
If statement and assigning wires in Verilog

I am trying to figure out the basics of assigning wires based on combinational logic. I have: wire val; wire …

logic hardware verilog hdl
Conditional instantiation of verilog module

Is it possible to instantiate a module conditionally in verliog ? example : if (en==1) then module1 instantiation else module2 instantiation

conditional instantiation verilog hdl
Verilog signed vs unsigned samples and first

Assuming I have a register reg [15:0] my_reg, which contains a 16-bit signed sample: How do I convert the sample …

bit-manipulation verilog hdl
How to use const in verilog

Instead of using module ... ( .. ) ; #15 endmodule I want use module ... ( ... ) ; // GateDelay is a const, like in c language const int GateDelay = 15 ; # …

constants verilog hdl system-verilog
Verilog: how to take the absolute value

In verilog I have an array of binary values. How do I take the absolute value of the subtracted values ? …

verilog hdl vlsi
How to implement a (pseudo) hardware random number generator

How do you implement a hardware random number generator in an HDL (verilog)? What options need to be considered? This …

random verilog hdl
Parameter array in Verilog

Is it possible to create a parameter array in Verilog? For example, anything like the following: parameter[TOTAL-1 : 0] PARAM_ARRAY = {1, 0, 0, 2} …

verilog hdl
Writing a Register File in VHDL

I am trying to write a register file in VHDL. The file contains 16 64-bit registers. Each cycle, two registers are …

vhdl cpu-registers computer-architecture hdl