newbie question about decoder

Discussion in 'VHDL' started by Max, Sep 3, 2003.

  1. Max

    Max Guest

    is it correct to implement a decoder in the following way?

    reg_en <= "000" when ce = '0' else
    "001" when cpu_addr_bus = "00" else
    "010" when cpu_addr_bus = "01" else
    "100" when cpu_addr_bus = "10" else
    "000";

    ce is the decoder enable. Once ce is one I decode cpu_addr_bus.

    thanks
     
    Max, Sep 3, 2003
    #1
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.