Thursday, July 23, 2020

Arrays, Memory and Strings in Verilog?

Arrays: Collection of objects of the same data type.

e.g.:
reg [7:0] arr; ==> 8-bit vector (or) bus of reg data type 
reg arr [7:0]; ==> array of 8 one-bit element

Memory: A memory structure can be created using arrays.
-> Memory structure using a 2-dimensional array: reg [0:7] memo [0:3];


-> Memory structure using a multi-dimensional array: reg [0:7] memo [0:3] [0:3] [0:3];

Strings: Group of characters enclosed in double quotation.
myString = "Welcome to VLSI Digest";

No comments:

Post a Comment

Featured Post

Why there is a massive chip shortage in the semiconductor industry?

Potential factors like economic disruption due to COVID-19, working from home, wafer yield issues, and shortage for 200 mm wafer capacities ...