-- Xilinx VHDL produced by program ngd2vhdl, Version M1.4.12
-- Date: Tue Jan  6 17:10:51 1998
-- Design file: time_sim.nga
-- Device: 4005epc84-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 D_LATCH is
  port (
    GATE : in STD_LOGIC := 'X' ;
    DATA : in STD_LOGIC := 'X' ;
    Q : out STD_LOGIC 
  ) ;
end D_LATCH ;

architecture STRUCTURE of D_LATCH is
  component ROC
       port ( O : out STD_ULOGIC ) ;
  end component ;
  component TOC
       port ( O : out STD_ULOGIC ) ;
  end component ;
  signal N_12 , N27 , N23 , Q_REG_1I7_LATCH_D_BUF , Q_REG_1I7_LATCH_G_INV , 
  Q_REG_1I7_LATCH_GE_BUF , Q_REG_1I7_LATCH_MUXAND0_OUT , 
  Q_REG_1I7_LATCH_MUXAND1_OUT , Q_REG_1I7_LATCH_MUXAND2_OUT , 
  Q_REG_1I7_LATCH_D_IN , U20_1I20_GTS_TRI , U19_CLKIO_BUFSIG , 
  U20_1I20_GTS_TRI_2_INV , GND , VCC , GTS , GSR : STD_LOGIC ;
  begin
    U21 : X_INV 
      port map ( I => N_12 , O => N23 ) ;
    VCC_0 : X_ONE 
      port map ( O => VCC ) ;
    Q_REG_1I7_LATCH_D_BUF_1 : X_BUF 
      port map ( I => DATA , O => Q_REG_1I7_LATCH_D_BUF ) ;
    Q_REG_1I7_LATCH_G_INV_2 : X_INV 
      port map ( I => N23 , O => Q_REG_1I7_LATCH_G_INV ) ;
    Q_REG_1I7_LATCH_GE_BUF_3 : X_INV 
      port map ( I => VCC , O => Q_REG_1I7_LATCH_GE_BUF ) ;
    Q_REG_1I7_LATCH_MUXAND0 : X_AND2 
      port map ( I0 => N27 , I1 => Q_REG_1I7_LATCH_GE_BUF , 
      O => Q_REG_1I7_LATCH_MUXAND0_OUT ) ;
    Q_REG_1I7_LATCH_MUXAND1 : X_AND2 
      port map ( I0 => Q_REG_1I7_LATCH_D_BUF , I1 => VCC , 
      O => Q_REG_1I7_LATCH_MUXAND1_OUT ) ;
    Q_REG_1I7_LATCH_MUXAND2 : X_AND2 
      port map ( I0 => Q_REG_1I7_LATCH_D_BUF , I1 => N27 , 
      O => Q_REG_1I7_LATCH_MUXAND2_OUT ) ;
    Q_REG_1I7_LATCH_MUXOR : X_OR3 
      port map ( I0 => Q_REG_1I7_LATCH_MUXAND0_OUT , 
      I1 => Q_REG_1I7_LATCH_MUXAND1_OUT , I2 => Q_REG_1I7_LATCH_MUXAND2_OUT , 
      O => Q_REG_1I7_LATCH_D_IN ) ;
    Q_REG_1I7_LATCH_INLATCH : X_LATCH 
      port map ( I => Q_REG_1I7_LATCH_D_IN , CLK => Q_REG_1I7_LATCH_G_INV , 
      SET => GND , RST => GSR , O => N27 ) ;
    U20_1I20 : X_BUF 
      port map ( I => N27 , O => U20_1I20_GTS_TRI ) ;
    U20_1I20_GTS_TRI_4 : X_TRI 
      port map ( I => U20_1I20_GTS_TRI , O => Q , CTL => U20_1I20_GTS_TRI_2_INV 
      ) ;
    U19_CLKBUF : X_CKBUF 
      port map ( I => U19_CLKIO_BUFSIG , O => N_12 ) ;
    U19_CLKIO_BUF : X_BUF 
      port map ( I => GATE , O => U19_CLKIO_BUFSIG ) ;
    U20_1I20_GTS_TRI_2_INV_5 : X_INV 
      port map ( I => GTS , O => U20_1I20_GTS_TRI_2_INV ) ;
    GND_6 : X_ZERO 
      port map ( O => GND ) ;
    ROC_NGD2VHDL : ROC 
      port map ( O => GSR ) ;
    TOC_NGD2VHDL : TOC 
      port map ( O => GTS ) ;
end STRUCTURE ;

