Altera_Forum
Honored Contributor
13 years agoArray of wires as memory lookup
Hello all,
I am quite new to Verilog, and I am trying to implement a memory array in a particular manner. Multiple addresses in the array need to point to the same location in physical memory, I was thinking perhaps I could use an array of wires. The actual question: How best I map a wire to these locations in memory if I define a wire like so:wire mem ; And say I wish to map from 'h20 to 'h7F in mem to 0 to 'h5F in a 2d reg defined as follows: reg data ;My attempt: assign mem = data ;But of course this is illegal. Of course if there is a more elegant solution I would be very interested. Your assistance would be much appreciated. Regards, Jovian.