-- Xilinx VHDL produced by program ngd2vhdl, Version M1.4.12
-- Date: Tue Jan  6 17:08:15 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_REGISTER is
  port (
    CLK : in STD_LOGIC := 'X' ;
    DATA : in STD_LOGIC := 'X' ;
    Q : out STD_LOGIC 
  ) ;
end D_REGISTER ;

architecture STRUCTURE of D_REGISTER is
  component ROC
       port ( O : out STD_ULOGIC ) ;
  end component ;
  component TOC
       port ( O : out STD_ULOGIC ) ;
  end component ;
  signal N20 , N21 , Q_REG_1I11_QINT , Q_REG_1I11_OBUF_GTS_TRI , 
  U18_CLKIO_BUFSIG , Q_REG_1I11_OBUF_GTS_TRI_2_INV , GND , GTS , VCC , GSR 
  : STD_LOGIC ;
  begin
    U19 : X_BUF 
      port map ( I => DATA , O => N21 ) ;
    Q_REG_1I11_FF : X_FF 
      port map ( I => N21 , CLK => N20 , CE => VCC , SET => GND , RST => GSR , 
      O => Q_REG_1I11_QINT ) ;
    Q_REG_1I11_OBUF : X_BUF 
      port map ( I => Q_REG_1I11_QINT , O => Q_REG_1I11_OBUF_GTS_TRI ) ;
    Q_REG_1I11_OBUF_GTS_TRI_0 : X_TRI 
      port map ( I => Q_REG_1I11_OBUF_GTS_TRI , O => Q , 
      CTL => Q_REG_1I11_OBUF_GTS_TRI_2_INV ) ;
    U18_CLKBUF : X_CKBUF 
      port map ( I => U18_CLKIO_BUFSIG , O => N20 ) ;
    U18_CLKIO_BUF : X_BUF 
      port map ( I => CLK , O => U18_CLKIO_BUFSIG ) ;
    Q_REG_1I11_OBUF_GTS_TRI_2_INV_1 : X_INV 
      port map ( I => GTS , O => Q_REG_1I11_OBUF_GTS_TRI_2_INV ) ;
    VCC_2 : X_ONE 
      port map ( O => VCC ) ;
    GND_3 : X_ZERO 
      port map ( O => GND ) ;
    ROC_NGD2VHDL : ROC 
      port map ( O => GSR ) ;
    TOC_NGD2VHDL : TOC 
      port map ( O => GTS ) ;
end STRUCTURE ;

