hi,
i had written a code in vhdl for matrix multiplication for which i predefined data to be multiplied...now i need to replace that predefined data with block ram...can anyone help me out how to do this?
hi
thanks for the reply...well sorry i didn't mentioned something in my post which is i need to retrieve the data from block ram and then perform mac operation and then send the result back to block ram..
hi
thanks for the reply...well sorry i didn't mentioned something in my post which is i need to retrieve the data from block ram and then perform mac operation and then send the result back to block ram..
Study how block RAM works and change your code to consider the necessary sequential access method. Only one RAM word can be accessed at a time (or optionally two when using dual port RAM).
I suggest reading the datasheet for the BRAM you intend to use. Reading datasheets is awesome! It solves all sorts of problems that you would have when you don't read them.
So after reading it you know the limitations + timings of your BRAM du jour. And then you can write a small FSM to do your "read, computate, write" stuff. Sounds like fun! Man, I should read documentation more often.