Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Warning: Found combinational loop of 1 nodes

how i can avoid this problem


library ieee;
USE ieee.std_logic_1164.all;
Entity dmux8 IS
PORT(
	S :	IN INTEGER RANGE 0 to 7;
	d :	IN STD_LOGIC;
	Y :	OUT STD_LOGIC_VECTOR(0 to 7)
);
END dmux8;
Architecture a OF dmux8 IS
BEGIN
dmux8:
PROCESS(d,s)
		BEGIN
		CASE S IS
		WHEN 0 =>
			Y(0) <= d;
		WHEN 1 =>
			Y(1) <= d;
		WHEN 2 =>
			Y(2) <= d;
		WHEN 3 =>
			Y(3) <= d;
		WHEN 4 =>
			Y(4) <= d;
		WHEN 5 =>
			Y(5) <= d;
		WHEN 6 =>
			Y(6) <= d;
		WHEN 7 =>
			Y(7) <= d;
		WHEN OTHERS => null;
		END CASE;
END PROCESS;
END a;

11 Replies