i have a verilog code in which there is a line as follows:
parameter ADDR_WIDTH = 8 ; parameter RAM_DEPTH = 1 << ADDR_WIDTH;
here what wi
<< is the left-shift operator, as it is in many other languages.
<<
Here RAM_DEPTH will be 1 left-shifted by 8 bits, which is equivalent to 2^8, or 256.
RAM_DEPTH
1
8 bits
2^8
256