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

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. Max

    decoder

    Max, Sep 9, 2003, in forum: VHDL
    Replies:
    2
    Views:
    1,741
    Egbert Molenkamp
    Sep 9, 2003
  2. Max

    R: decoder

    Max, Sep 9, 2003, in forum: VHDL
    Replies:
    1
    Views:
    840
    Egbert Molenkamp
    Sep 9, 2003
  3. Matt North

    S-Video Decoder

    Matt North, Oct 28, 2003, in forum: VHDL
    Replies:
    1
    Views:
    796
    itsme
    Oct 28, 2003
  4. Gietek

    N_bit decoder/encoder

    Gietek, Dec 3, 2003, in forum: VHDL
    Replies:
    4
    Views:
    886
    Charles M. Elias
    Dec 4, 2003
  5. sunil
    Replies:
    1
    Views:
    1,142
  6. axelman

    Newbie, VIN Number decoder help

    axelman, Jun 5, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    653
    Cowboy \(Gregory A. Beamer\)
    Jul 14, 2007
  7. axelman

    Newbie, VIN Number decoder help

    axelman, Jun 5, 2007, in forum: ASP .Net Web Services
    Replies:
    7
    Views:
    344
    Cowboy \(Gregory A. Beamer\)
    Jul 14, 2007
  8. Jerry C.
    Replies:
    8
    Views:
    586
    Uri Guttman
    Nov 23, 2003
Loading...