All pastes #2065979 Raw Edit

lautriv

public text v1 · immutable
#2065979 ·published 2011-05-20 20:28 UTC
rendered paste body
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

entity transc8 is
Port(
	DA,DB : inout  STD_LOGIC_VECTOR (7 downto 0);
	DIR : in  STD_LOGIC 
  );
end transc8;

architecture transc8_A of transc8 is
begin
	process (DIR)
	begin
		if (DIR='1') then 
		DA <= (DB);
		else 
		DB <= (DA);
		end if;
	end process;
end transc8_A;