Forum Discussion
Altera_Forum
Honored Contributor
17 years agoMismatched Nodes
I am designing a 4 bit ripple adder using input and output buses. They are named A[3..0],B[3..0] and Sum[3..0]. When I try to simulate the circuit though I get these errors: Warning: Wrong node ty...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Hi, What a kind man you are! My project have the same question,Can you help me? Thank you below is my vhdl source file: library ieee; use ieee.std_logic_1164.all; entity yinliaoji is port( A: in std_logic; B: in std_logic; Y: out std_logic; Z: out std_logic; Q: buffer std_logic_vector(1 downto 0) ); end yinliaoji; architecture behave of yinliaoji is begin process(A,B,Q) begin if Q="00" and A='0' and B='0'then Q<="00";Y<='0';Z<='0'; elsif Q="00" and A='0' and B='1'then Q<="01";Y<='0';Z<='0'; elsif Q="00" and A='1' and B='0'then Q<="10";Y<='0';Z<='0'; elsif Q="01" and A='0' and B='0'then Q<="01";Y<='0';Z<='0'; elsif Q="01" and A='0' and B='1' then Q<="10";Y<='0';Z<='0'; elsif Q="01" and A='1' and B='0' then Q<="00";Y<='1';Z<='0'; elsif Q="10" and A='0' and B='0' then Q<="10";Y<='0';Z<='0'; elsif Q="10" and A='0' and B='1' then Q<="00";Y<='1';Z<='0'; elsif Q="00" and A='1' and B='0' then Q<="00";Y<='1';Z<='1'; end if; end process; end behave; --- Quote End --- Hi, only o be sure, you have also a problem with a vwf-file for simulation ? Kind regards GPK