-- Xilinx VHDL produced by program ngd2vhdl, Version M1.4.12
-- Date: Tue Jan  6 17:34:40 1998
-- Design file: time_sim.nga
-- Device: 4013xlpq160-2
----- CELL ROC -----
-- Model for  Reset-On-Configuration Cell
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.VITAL_Timing.all;

entity ROC is
    generic ( InstancePath: STRING := "*";
              WIDTH : Time := 0 ns) ;
    port( O : out std_ulogic := '1' ) ;
    attribute VITAL_LEVEL0 of ROC : entity is TRUE ;
end ROC ;

architecture ROC_V of ROC is
attribute VITAL_LEVEL0 of ROC_V : architecture is TRUE ;
begin
    ONE_SHOT: process
    begin
      if (WIDTH <= 0 ns) then
         assert FALSE report
         "*** Error: a positive value of WIDTH must be specified ***"
         severity failure;
      else
         wait for WIDTH;
         O <= '0' ;
      end if;
      wait;
    end process ONE_SHOT ;
end ROC_V ;

configuration CFG_ROC_V of ROC is
    for ROC_V
    end for ;
end CFG_ROC_V ;
----- CELL TOC -----
-- Model for  Tristate-On-Configuration Cell
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.VITAL_Timing.all;

entity TOC is
    generic ( InstancePath: STRING := "*");
    port( O : out std_ulogic := '0' ) ;
    attribute VITAL_LEVEL0 of TOC : entity is TRUE ;
end TOC ;

architecture TOC_V of TOC is
attribute VITAL_LEVEL0 of TOC_V : architecture is TRUE ;
begin
    ONE_SHOT: process
    begin
      wait;
    end process ONE_SHOT ;
end TOC_V ;

configuration CFG_TOC_V of TOC is
    for TOC_V
    end for ;
end CFG_TOC_V ;
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
library SIMPRIM;
use SIMPRIM.VCOMPONENTS.ALL;
use SIMPRIM.VPACKAGE.ALL;
entity BIDIR_INSTANTIATE is
  port (
    READ_WRITE : in STD_LOGIC := 'X' ;
    DATA : inout  STD_LOGIC_VECTOR ( 1 downto 0 )
  ) ;
end BIDIR_INSTANTIATE ;

architecture STRUCTURE of BIDIR_INSTANTIATE is
  component ROC
       port ( O : out STD_ULOGIC ) ;
  end component ;
  component TOC
       port ( O : out STD_ULOGIC ) ;
  end component ;
  signal N2 , GATE , OUPUT_PATH_0_1I9_GTS_AND , OUPUT_PATH_1_1I9_GTS_AND , 
  INPUT_PATH_0_D_BUF , INPUT_PATH_0_G_INV , INPUT_PATH_1_D_BUF , 
  INPUT_PATH_1_G_INV , U12_CLKIO_BUFSIG , OUPUT_PATH_0_1I9_GTS_AND_0_INV , 
  OUPUT_PATH_0_1I9_GTS_AND_1_INV , OUPUT_PATH_1_1I9_GTS_AND_0_INV , 
  OUPUT_PATH_1_1I9_GTS_AND_1_INV , GND , GSR , GTS : STD_LOGIC ;
  signal DATA_OUT : STD_LOGIC_VECTOR ( 1 downto 0 );
  signal LATCH_OUT : STD_LOGIC_VECTOR ( 1 downto 0 );
  begin
    U13 : X_INV 
      port map ( I => N2 , O => GATE ) ;
    U14 : X_OR2 
      port map ( I0 => LATCH_OUT(0) , I1 => LATCH_OUT(1) , O => DATA_OUT(1) ) ;
    U15 : X_AND2 
      port map ( I0 => LATCH_OUT(1) , I1 => LATCH_OUT(0) , O => DATA_OUT(0) ) ;
    OUPUT_PATH_0_1I9 : X_TRI 
      port map ( I => DATA_OUT(0) , O => DATA(0) , 
      CTL => OUPUT_PATH_0_1I9_GTS_AND ) ;
    OUPUT_PATH_0_1I9_GTS_AND_0 : X_AND2 
      port map ( I0 => OUPUT_PATH_0_1I9_GTS_AND_0_INV , 
      I1 => OUPUT_PATH_0_1I9_GTS_AND_1_INV , O => OUPUT_PATH_0_1I9_GTS_AND ) ;
    OUPUT_PATH_1_1I9 : X_TRI 
      port map ( I => DATA_OUT(1) , O => DATA(1) , 
      CTL => OUPUT_PATH_1_1I9_GTS_AND ) ;
    OUPUT_PATH_1_1I9_GTS_AND_1 : X_AND2 
      port map ( I0 => OUPUT_PATH_1_1I9_GTS_AND_0_INV , 
      I1 => OUPUT_PATH_1_1I9_GTS_AND_1_INV , O => OUPUT_PATH_1_1I9_GTS_AND ) ;
    INPUT_PATH_0_D_BUF_2 : X_BUF 
      port map ( I => DATA(0) , O => INPUT_PATH_0_D_BUF ) ;
    INPUT_PATH_0_G_INV_3 : X_INV 
      port map ( I => GATE , O => INPUT_PATH_0_G_INV ) ;
    INPUT_PATH_0_INLATCH : X_LATCH 
      port map ( I => INPUT_PATH_0_D_BUF , CLK => INPUT_PATH_0_G_INV , 
      SET => GND , RST => GSR , O => LATCH_OUT(0) ) ;
    INPUT_PATH_1_D_BUF_4 : X_BUF 
      port map ( I => DATA(1) , O => INPUT_PATH_1_D_BUF ) ;
    INPUT_PATH_1_G_INV_5 : X_INV 
      port map ( I => GATE , O => INPUT_PATH_1_G_INV ) ;
    INPUT_PATH_1_INLATCH : X_LATCH 
      port map ( I => INPUT_PATH_1_D_BUF , CLK => INPUT_PATH_1_G_INV , 
      SET => GND , RST => GSR , O => LATCH_OUT(1) ) ;
    U12_CLKBUF : X_CKBUF 
      port map ( I => U12_CLKIO_BUFSIG , O => N2 ) ;
    U12_CLKIO_BUF : X_BUF 
      port map ( I => READ_WRITE , O => U12_CLKIO_BUFSIG ) ;
    OUPUT_PATH_0_1I9_GTS_AND_0_INV_6 : X_INV 
      port map ( I => N2 , O => OUPUT_PATH_0_1I9_GTS_AND_0_INV ) ;
    OUPUT_PATH_0_1I9_GTS_AND_1_INV_7 : X_INV 
      port map ( I => GTS , O => OUPUT_PATH_0_1I9_GTS_AND_1_INV ) ;
    OUPUT_PATH_1_1I9_GTS_AND_0_INV_8 : X_INV 
      port map ( I => N2 , O => OUPUT_PATH_1_1I9_GTS_AND_0_INV ) ;
    OUPUT_PATH_1_1I9_GTS_AND_1_INV_9 : X_INV 
      port map ( I => GTS , O => OUPUT_PATH_1_1I9_GTS_AND_1_INV ) ;
    GND_10 : X_ZERO 
      port map ( O => GND ) ;
    ROC_NGD2VHDL : ROC 
      port map ( O => GSR ) ;
    TOC_NGD2VHDL : TOC 
      port map ( O => GTS ) ;
end STRUCTURE ;

