Jump to content

Anyone here know VHDL?


plutomed

Recommended Posts

If there is anyone...

 

Errors:

ERROR:Xst:528 - Multisource in Unit <Calc> on signal <row<3>>; this signal is connected to multiple drivers.

ERROR:Xst:528 - Multisource in Unit <Calc> on signal <row<2>>; this signal is connected to multiple drivers.

ERROR:Xst:528 - Multisource in Unit <Calc> on signal <row<1>>; this signal is connected to multiple drivers.

ERROR:Xst:528 - Multisource in Unit <Calc> on signal <row<0>>; this signal is connected to multiple drivers.

 

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

entity Calc is
    Port ( KeyCode : out  STD_LOGIC_VECTOR (3 downto 0);
           row : out  STD_LOGIC_VECTOR (3 downto 0);
           col : in  STD_LOGIC_VECTOR (3 downto 0);
           CLK : out  STD_LOGIC);
end Calc;

architecture SendKeyCode of Calc is

begin
	row 		<= 	"0111";

	KeyCode 	<= 	"0000" when col="0111" else
						"0001" when col="1011" else
						"0010" when col="1101" else
						"0011" when col="1110" else
						"ZZZZ";

	row 		<= 	"1011";

	KeyCode 	<=		"0100" when col="0111" else
						"0101" when col="1011" else
						"0110" when col="1101" else
						"0111" when col="1110" else
						"ZZZZ";

	row 		<= 	"1101";

	KeyCode 	<=		"1000" when col="0111" else
						"1001" when col="1011" else
						"1010" when col="1101" else
						"1011" when col="1110" else
						"ZZZZ";

	row 		<= 	"1110";

	KeyCode 	<=		"1100" when col="0111" else
						"1101" when col="1011" else
						"1110" when col="1101" else
						"1111" when col="1110" else
						"ZZZZ";

	CLK		<=		'0' when col="1111" else '1';


end SendKeyCode;

 

As I am just learning. Is there anyone who could tell me where I have gone wrong?

 

Thanx in advance, Dan.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.