Maker Pro
Maker Pro

Re: VHDL Code OR MATLAB/Simulink

Hi all,
Well I have to design a base index generator. When I say base index it is nothing but indexing the output of a binary counter.

Well let me explain it clearly.

We have a 13-bit binary counter who outputs are quoting to 4096 locations on a RAM and we have 13 such stage.
That is like the counter should count to 4K for 13 stages. Now we have to generate base index addresses for this 4K x 13 operations.
The idea I devised is to insert an extra bit '0' or '1' in the 13bit output of the counter at the MSB position for the Stage 1 from count 0 to 4095 of that particular stage, then '0/1' at the MSB-1 position for Stage 2 from 0-4095, and MSB-3 for Stage 3 and so on till Stage 13(when we use the Big-Endian notation).

For doing this I have thought of using an Array of 13 MUXes to choose between the 1's and 0's and the position of insertion depending on the stage..

Can anyone please implement this for me in MATLAB or VHDL...if You have any further queries pls ask me..I will be very thankful to whoever helps me on this pls
 
Top