Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - case statement: VHDL

 
Thread Tools Search this Thread
Old 10-30-2006, 12:30 PM   #1
Default case statement: VHDL


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
lightofspace is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46