
Creating Bidirectional Signals Using VHDL
 
 
 
 
process (clk) begin
  if clk’event and clk=‘1’ then
end process;
    out0_int <= data0; 
  end if;
   -- clock data into registerout0 <= out0_int when enable=‘1’ else ‘Z’;		
   -- Drive I/O pin when enable is high
out1 <= out0_int xor out0; 	
   -- out1 goes high when out0 reg. and pin are different