![]() |
|
|
|
#1 |
|
Hello there!!
I have question about Case statement, can I restrict the expression input of case statement, to make it more clear I will review an example: -------------------------------------------------------------------- ENTITY interface IS PORT (input: IN std_logic_vector (15 downto 0)); -- the ports interface still in the construction phase END ENTITY interface; -- ARCHITECTURE behavioral OF interface IS BEGIN mapping: Process (input) Begin case input is when "000000001" => writeline(output, "Clear Display"); when "000000011" => writeline(output, "Return Home"); when "000000010" => writeline(output, "Return Home"); when "000000001" => writeline(output, "Clear Display"); end case; End Process; END ARCHITECTURE behavioral; -------------------------------------------------------------------- so that I want case not to take all the bits (from 0 to 15) in "input", I want just to make comparison on the first 8 bit like "case input (4 downto 11) is", is this possible in case statement of vhdl? Thanks ahmad lightofspace |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cooler Master Gladiator 600 Case | Admin | Front Page News | 0 | 07-10-2009 10:52 AM |
| ThermalTake DH 102 Home Theater Case | Admin | Front Page News | 0 | 06-12-2009 08:22 AM |
| How to execute an external software from VHDL? And how to interface VHDL with JAVA? | becool_nikks | Software | 0 | 03-06-2009 07:08 PM |
| Help on auto conversion from Matlab to vhdl on filter design | hardheart | Hardware | 0 | 12-07-2007 09:19 AM |
| Judge: File-swapping tools are legal | Citizen Bob | DVD Video | 140 | 11-08-2006 06:42 PM |