EmbDev.net

Forum: FPGA, VHDL & Verilog Doubt on Memories declaration


von Vemishetty N. (Company: NIT Trichy) (nareshv)


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

von ♪Geist (Guest)


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

von test (Guest)


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.

Reply

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.