Actually I have designed a 1KB RAM on VHDL using a Hardware design approach..
My aim is to design 64KB RAM,. So what I thought is, first of all I will design 32KB RAM using 1KB RAM as a component with "Generate" command,..
Then will use this 32KB RAM as Component twice to have a complete 64 KB RAM.
Now for 64KB RAM, I have 65536 locations,. which needs 16 Address lines.
I will decode this 16 lines using a decoder and then will break 65536 lines into two parts ,.. one will contain first 32768 and second will contain remaining
32768 lines, as required by a 32KB RAM.
This 32 KB Rams will then further divide these 32768 lines into 32 Parts to be used by each 1KB Ram containing 1024 locations.
Now Problems arrives when my DECODER CODE FAILED TO GENERATE 65536 LINES OUT OF 16 ADDRESS LINES.
then I thought to check whether the MSB of the address is '1' or '0'. If it is '0' then use first 32KB Component, otherwise second 32KB Component.
I am not very much experienced with VHDL, so I am asking how this problem can be resolved.
Decoder code works fine upto 13x8192 decoding.