Forum: FPGA, VHDL & Verilog Doubt on Memories declaration

Author: Vemishetty Naresh (Company: NIT Trichy) (nareshv)
Posted on:

Rate this post
0 useful
not useful
Hello everyone, reg [7:0] mem1 [0:15] can be explained as 16 registers 
with 8 bit each, may i know the explanation of syntax  "reg [7:0] b 
[0:3] [0:3];
" in verilog what it represent???
 Thanking you in advance

Author: ♪Geist (Guest)
Posted on:

Rate this post
0 useful
not useful
It represents an array.

Author: test (Guest)
Posted on:

Rate this post
0 useful
not useful
If you want to declare a memory for a specific platform check the 
documentation of the manufacturer. All FPGA manufacturers have example 
syntax for their implementations, that way you can be sure to use 
exactly the features of the embedded ram blocks.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.