Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > VHDL HELP!!!!! Kepad decoder code

Reply
Thread Tools

VHDL HELP!!!!! Kepad decoder code

 
 
mitsui9999 mitsui9999 is offline
Junior Member
Join Date: Sep 2008
Posts: 3
 
      10-17-2008
Help me to solve the problems about the keypad decode.
eg: output: col1 goes high when row1 is high and button press is 1
row 2 is high and button press is 4

i put case or if statements???

let me know that what wrong with it. thanks


entity prog5 is
Port ( reset , clk : in std_logic;
index : in integer range 1 to 12;
col : out std_logic_vector(2 downto 0);
row : in std_logic_vector(3 downto 0));
end prog5;

architecture Behavioral of prog5 is



begin

Process(clk,index)
begin
case col is
when "100" => "1000" <= row; index = 1;
when "100" => "0100" <= row; index = 4;
when "100" => "0010" <= row; index = 7;
end case;

end process ;
end Behavioral;


thanks
Regards
Mitsui9999


mitsui9999
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decoder using VHDL dkk1980 VHDL 0 04-25-2007 02:31 PM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
Decoder for obfuscated code? zsisco@yahoo.com Javascript 3 09-25-2006 01:44 AM
Please, I need help with a mpeg layer 1 decoder in vhdl jacobo VHDL 4 05-19-2004 02:19 AM
Reed-Solomon correcting code - coder/decoder in vhdl Wilq VHDL 0 05-17-2004 08:39 AM



Advertisments