Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Address muxing from multiple sources

Reply
Thread Tools

Address muxing from multiple sources

 
 
Salman Sheikh
Guest
Posts: n/a
 
      08-28-2003
Hello Out there,

I am trying to come up with an addressing scheme for a memory in my FPGA. I
have various modules with the my algorithm that need to address the RAM
memory. My question is this: How is the best way to write the code to
address the memory from different state address sources. Each address
source will access the memory sequentially. I thought of a mux where I
have a controller picking which block addresses the memory and has access
to the address and data lines, something like this:

--

process (sel_192, mem_en_sum, mem_en_exact, addr_exact, addr_colsum,
mem_en_minmax, addr_minmax, mem_en_estcen, addr_estcent, addrofst0,
addrofst1, addrofst2, addrofst3, addrofst4)
begin
case sel_192 is
when "000" =>
membank0 <= mem_en_sum & addr_colsum;
membank1 <= mem_en_sum & addr_colsum;
membank2 <= mem_en_sum & addr_colsum;
membank3 <= mem_en_sum & addr_colsum;
membank4 <= mem_en_sum & addr_colsum;
when "001" =>
membank0 <= mem_en_minmax & addr_minmax;
when "010" =>
membank0 <= mem_en_estcen & addr_estcent;
when "011" =>
membank0 <= mem_en_exact & addr_exact;
when "100" =>
membank0 <= '1' & addrofst0;
membank1 <= '1' & addrofst1;
membank2 <= '1' & addrofst2;
membank3 <= '1' & addrofst3;
membank4 <= '1' & addrofst4;
when others =>
membank0 <= (others => 'Z');
membank1 <= (others => 'Z');
membank2 <= (others => 'Z');
membank3 <= (others => 'Z');
membank4 <= (others => 'Z');
end case;
end process;

Is this a good way to procede or does anyone have any suggestions?

Thanks in advance.

Salman

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
muxing T1's vs DS-3 P.Schuman Cisco 9 06-09-2007 01:02 AM
muxing T1's vs DS-3 P.Schuman VOIP 9 06-09-2007 01:02 AM
clocking muxing, plz throw some light sudeepts@gmail.com VHDL 1 02-23-2006 06:43 PM
MPEG2 PS stream Muxing sumanta DVD Video 0 09-28-2005 11:41 AM
How to have multiple language sources in one project? Hamed ASP .Net 3 02-15-2004 03:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57