Module 1 - Part 2 - Lexical Conventions-Ppt - Upload
Module 1 - Part 2 - Lexical Conventions-Ppt - Upload
Assistant Professor,
Department of Electronics & Communication Engineering,
Kumaraguru College of Technology.
Contents
• Lexical Conventions
• Data Types
• System Tasks and Compiler Directives
count[5]
chk_point[100]
port_id[3]
• Note the difference between vectors and arrays
07/28/2023 Verilog HDL 20
Memories
• RAM, ROM, and register-files used many times in digital systems
• Memory = array of registers in Verilog
• Word = an element of the array
• Can be one or more bits
• Examples:
reg membit[0:1023];
reg [7:0] membyte[0:1023];
membyte[511]
• Note the difference (as in arrays):
reg membit[0:127];
reg [0:127] register;
• $display($time);
Output: 230
• Output:
0 value of signals clock=0, reset=1
5 value of signals clock=1, reset=1
10 value of signals clock=0, reset=0