Altera_Forum
Honored Contributor
12 years ago2 to 1 mulltiplexer
Hi all.
I have problem during run VHDL code for 2 to 1 multiplexer. this multiplexer have 8 bit for input and output. while the select bit is only one bit. Here is my coding. However, there is error appear. Do you have solution regarding my problem. LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY part2 IS PORT( SWX,SWY : IN std_logic_vector (7 downto 0); s : IN bit; LEDR : OUT std_logic_vector (7 downto 0)); END part2; ARCHITECTURE dataflow OF part2 IS BEGIN LEDR <= (NOT (s) AND SWX) OR (s AND SWY); END dataflow;