Best way to mux addresses

Discussion in 'VHDL' started by salman sheikh, Jan 30, 2004.

  1. I have some memory RAMS that I have multiple address sources. I thought
    a mux with a control would be best for addressing the memory. Is this
    the best approach in terms of simplicity of code and synthesis?

    -- Here is my example address case statement based on control signal
    -- sel192
    process (sel192, eram_colsum, eram_minmax, eram_estcen, eram_exact,
    addr_colsum, addr_minmax, addr_estcent, addr_exact, addrofst0,
    addrofst1, addrofst2, addrofst3, addrofst4)
    begin
    case sel192 is

    when "000" =>
    addr_bnk0 <= eram_colsum & addr_colsum;
    addr_bnk1 <= eram_colsum & addr_colsum;

    when "001" =>
    addr_bnk0 <= eram_minmax & addr_minmax;
    addr_bnk1 <= (others => 'Z');

    when "010" =>
    addr_bnk0 <= eram_estcen & addr_estcent;
    addr_bnk1 <= (others => 'Z');

    when "100" =>
    addr_bnk0 <= eram_exact & addr_exact;
    addr_bnk1 <= (others => 'Z');

    when "101" =>
    addr_bnk0 <= '0' & addrofst0;
    addr_bnk1 <= '0' & addrofst1;

    when others =>
    addr_bnk0 <= (others => 'Z');
    addr_bnk1 <= (others => 'Z');
    end case;
    end process;
    ---

    Thanks in advance.

    Salman
     
    salman sheikh, Jan 30, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fano
    Replies:
    0
    Views:
    1,197
  2. Oleg
    Replies:
    1
    Views:
    1,016
    Francisco Rodriguez
    Feb 18, 2004
  3. Oleg
    Replies:
    4
    Views:
    7,551
    Ray Andraka
    Apr 6, 2004
  4. transformer
    Replies:
    1
    Views:
    3,047
    Lorenzo Di Gregorio
    Aug 2, 2004
  5. valentin tihomirov

    Feedback mux created for signal data

    valentin tihomirov, Aug 31, 2004, in forum: VHDL
    Replies:
    2
    Views:
    4,868
    Thomas Stanka
    Sep 1, 2004
  6. Miguel Dias Moura
    Replies:
    4
    Views:
    1,398
    Zenobia
    Jun 26, 2004
  7. namespace1
    Replies:
    3
    Views:
    1,102
  8. Chris Maryan
    Replies:
    14
    Views:
    1,233
    Chris Maryan
    Nov 3, 2008
Loading...