Altera_Forum
Honored Contributor
11 years agoHelp with a simple RAM code - VHDL
Hello everyone,
So I have been trying to write a simple VHDL code for a RAM with the following conditions, no success yet. Can anyone please help me with a code?. 1. Say I need a 2KB RAM with 1024 address locations and each location will be filled with 16 bit data. 2. My first 4 memoy locations should have the value 1122, 3344, 5566, 7788, 9988, and the rest should have values from 0 to 1019 respectively. I am struggling with the part where I need the first 4 locations to be a specific value, and the rest to be the counter values from 0 to 1019. I don't know how to write that in VHDL. Please help me with a code, . Will be highly appreciated, thanks. Kind Regards, Manoj