DRO
Junior Member level 1
Hi everyone,
I GOT A HUGE PROBLEM
I am trying to store some datas in a ram in order to send them via USB to my computer. I am writting a VHDL code for all of it.
This is how it works :
there is a first block which just sends an adress to the RAM (not considering what is after it, he just sends and sends and sends).Then all what shall be done is just a +1 incrementation of what is at the adress.
I first tried to do it by using the synthax "Type RAM is array () of std_logic_vector() , but it seems like it consumes lot of logic cells of the fpga, not memory blocks (and i am short on logic cells). So i changed for Altsyncram megafunction.
But now there is a problem when i try to write in the RAM. When I increments the content of an adress 5 times for example, i should see the number 5 at that adress (assuming that i have a way to check it on my computer), but that's not the case. I see numbers such as 146 or other big numbers.
I really don't know where is the problem, and i have read altera's document on RAM blocks and all. please can somone help me with this, because it is really bothersome right now. If you want a piece of code no problems just tell me.
thank you.
I GOT A HUGE PROBLEM
I am trying to store some datas in a ram in order to send them via USB to my computer. I am writting a VHDL code for all of it.
This is how it works :
there is a first block which just sends an adress to the RAM (not considering what is after it, he just sends and sends and sends).Then all what shall be done is just a +1 incrementation of what is at the adress.
I first tried to do it by using the synthax "Type RAM is array () of std_logic_vector() , but it seems like it consumes lot of logic cells of the fpga, not memory blocks (and i am short on logic cells). So i changed for Altsyncram megafunction.
But now there is a problem when i try to write in the RAM. When I increments the content of an adress 5 times for example, i should see the number 5 at that adress (assuming that i have a way to check it on my computer), but that's not the case. I see numbers such as 146 or other big numbers.
I really don't know where is the problem, and i have read altera's document on RAM blocks and all. please can somone help me with this, because it is really bothersome right now. If you want a piece of code no problems just tell me.
thank you.