Case range with bitstream: VHDL

Discussion in 'VHDL' started by lightofspace, Oct 31, 2006.

  1. lightofspace

    lightofspace

    Joined:
    Oct 19, 2006
    Messages:
    8
    Likes Received:
    0
    Hi there!!
    I am stuck in a problem of CASE range, I have the following code:
    ----------------------------------------------------------------------------
    input_data: IN std_logic_vector (7 downto 0);
    output: OUT std_logic_vector (3 downto 0);
    .
    .
    .
    .
    case input_data is
    when "00000001" => output <= "0010";
    when "10000000" to "11111111" => output <= "1000";
    when others => output <= "1111";
    end case;
    ----------------------------------------------------------------------------
    I want to make case range facility to work with binary also, how can I do this?
    thanks in advance,
    ahmad
     
    lightofspace, Oct 31, 2006
    #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. Zak

    bitstream compatibility

    Zak, Oct 21, 2003, in forum: VHDL
    Replies:
    0
    Views:
    580
  2. Stefan Oedenkoven
    Replies:
    1
    Views:
    735
    zinga
    Jan 4, 2005
  3. Dietrich Epp

    Reading a Bitstream

    Dietrich Epp, Nov 18, 2003, in forum: Python
    Replies:
    7
    Views:
    763
    Patrick Maupin
    Nov 21, 2003
  4. Summercoolness@gmail.com

    range() is not the best way to check range?

    Summercoolness@gmail.com, Jul 18, 2006, in forum: Python
    Replies:
    46
    Views:
    1,345
    Antoon Pardon
    Jul 25, 2006
  5. quad

    Bitstream programming

    quad, Jan 2, 2007, in forum: VHDL
    Replies:
    0
    Views:
    528
  6. afd
    Replies:
    1
    Views:
    10,042
    Colin Paul Gloster
    Mar 23, 2007
  7. PSN
    Replies:
    1
    Views:
    473
    Chris Fairles
    Dec 13, 2007
  8. BlackHelicopter
    Replies:
    0
    Views:
    919
    BlackHelicopter
    Jan 31, 2013
Loading...