--- VHDL model created from schematic top.sch -- Jan 09 20:54:18 2007\r
-\r
-\r
-\r
-LIBRARY ieee;\r
-\r
-USE ieee.std_logic_1164.ALL;\r
-USE ieee.numeric_std.ALL;\r
-\r
-\r
-entity dhwk is\r
- Port ( KONST_1 : In std_logic;\r
- PCI_CBEn : In std_logic_vector (3 downto 0);\r
- PCI_CLOCK : In std_logic;\r
- PCI_FRAMEn : In std_logic;\r
- PCI_IDSEL : In std_logic;\r
- PCI_IRDYn : In std_logic;\r
- PCI_RSTn : In std_logic;\r
--- SERIAL_IN : In std_logic;\r
--- SPC_RDY_IN : In std_logic;\r
- TAST_RESn : In std_logic;\r
- TAST_SETn : In std_logic;\r
- LED_2 : out std_logic;\r
- LED_3 : out std_logic;\r
- LED_4 : out std_logic;\r
- LED_5 : out std_logic;\r
- PCI_AD : InOut std_logic_vector (31 downto 0);\r
- PCI_PAR : InOut std_logic;\r
- PCI_DEVSELn : Out std_logic;\r
- PCI_INTAn : Out std_logic;\r
- PCI_PERRn : Out std_logic;\r
- PCI_SERRn : Out std_logic;\r
- PCI_STOPn : Out std_logic;\r
- PCI_TRDYn : Out std_logic;\r
- PCI_REQn : Out std_logic;\r
- PCI_GNTn : In std_logic;\r
--- SERIAL_OUT : Out std_logic;\r
--- SPC_RDY_OUT : Out std_logic;\r
- TB_IDSEL : Out std_logic;\r
- TB_nDEVSEL : Out std_logic;\r
- TB_nINTA : Out std_logic );\r
-end dhwk;\r
-\r
-architecture SCHEMATIC of dhwk is\r
-\r
- SIGNAL gnd : std_logic := '0';\r
- SIGNAL vcc : std_logic := '1';\r
-\r
- signal READ_XX7_6 : std_logic;\r
- signal RESERVE : std_logic;\r
- signal SR_ERROR : std_logic;\r
- signal R_ERROR : std_logic;\r
- signal S_ERROR : std_logic;\r
- signal WRITE_XX3_2 : std_logic;\r
- signal WRITE_XX5_4 : std_logic;\r
- signal WRITE_XX7_6 : std_logic;\r
- signal READ_XX1_0 : std_logic;\r
- signal READ_XX3_2 : std_logic;\r
- signal INTAn : std_logic;\r
- signal TRDYn : std_logic;\r
- signal READ_XX5_4 : std_logic;\r
- signal DEVSELn : std_logic;\r
- signal FIFO_RDn : std_logic;\r
- signal WRITE_XX1_0 : std_logic;\r
- signal REG_OUT_XX6 : std_logic_vector (7 downto 0);\r
- signal SYNC_FLAG : std_logic_vector (7 downto 0);\r
- signal INT_REG : std_logic_vector (7 downto 0);\r
- signal REVISON_ID : std_logic_vector (7 downto 0);\r
- signal VENDOR_ID : std_logic_vector (15 downto 0);\r
- signal READ_SEL : std_logic_vector (1 downto 0);\r
- signal AD_REG : std_logic_vector (31 downto 0);\r
- signal REG_OUT_XX7 : std_logic_vector (7 downto 0);\r
- signal R_EFn : std_logic;\r
- signal R_FFn : std_logic;\r
- signal R_FIFO_Q_OUT : std_logic_vector (7 downto 0);\r
- signal R_HFn : std_logic;\r
- signal S_EFn : std_logic;\r
- signal S_FFn : std_logic;\r
- signal S_FIFO_Q_OUT : std_logic_vector (7 downto 0);\r
- signal S_HFn : std_logic;\r
- signal R_FIFO_D_IN : std_logic_vector (7 downto 0);\r
- signal R_FIFO_READn : std_logic;\r
- signal R_FIFO_RESETn : std_logic;\r
- signal R_FIFO_RTn : std_logic;\r
- signal R_FIFO_WRITEn : std_logic;\r
- signal S_FIFO_D_IN : std_logic_vector (7 downto 0);\r
- signal S_FIFO_READn : std_logic;\r
- signal S_FIFO_RESETn : std_logic;\r
- signal S_FIFO_RTn : std_logic;\r
- signal S_FIFO_WRITEn : std_logic;\r
- signal SERIAL_IN : std_logic;\r
- signal SPC_RDY_IN : std_logic;\r
- signal SERIAL_OUT : std_logic;\r
- signal SPC_RDY_OUT : std_logic;\r
- signal watch_PCI_INTAn : std_logic;\r
- signal watch_PCI_TRDYn : std_logic;\r
- signal watch_PCI_STOPn : std_logic;\r
- signal watch_PCI_SERRn : std_logic;\r
- signal watch_PCI_PERRn : std_logic;\r
- signal watch_PCI_REQn : std_logic;\r
- signal control0 : std_logic_vector(35 downto 0);\r
- signal data : std_logic_vector(95 downto 0);\r
- signal trig0 : std_logic_vector(31 downto 0);\r
-\r
- component MESS_1_TB\r
- Port ( DEVSELn : In std_logic;\r
- INTAn : In std_logic;\r
- KONST_1 : In std_logic;\r
- PCI_IDSEL : In std_logic;\r
- REG_OUT_XX7 : In std_logic_vector (7 downto 0);\r
- TB_DEVSELn : Out std_logic;\r
- TB_INTAn : Out std_logic;\r
- TB_PCI_IDSEL : Out std_logic );\r
- end component;\r
-\r
- component VEN_REV_ID\r
- Port ( REV_ID : Out std_logic_vector (7 downto 0);\r
- VEN_ID : Out std_logic_vector (15 downto 0) );\r
- end component;\r
-\r
- component INTERRUPT\r
- Port ( INT_IN_0 : In std_logic;\r
- INT_IN_1 : In std_logic;\r
- INT_IN_2 : In std_logic;\r
- INT_IN_3 : In std_logic;\r
- INT_IN_4 : In std_logic;\r
- INT_IN_5 : In std_logic;\r
- INT_IN_6 : In std_logic;\r
- INT_IN_7 : In std_logic;\r
- INT_MASKE : In std_logic_vector (7 downto 0);\r
- INT_RES : In std_logic_vector (7 downto 0);\r
- PCI_CLOCK : In std_logic;\r
- PCI_RSTn : In std_logic;\r
- READ_XX5_4 : In std_logic;\r
- RESET : In std_logic;\r
- TAST_RESn : In std_logic;\r
- TAST_SETn : In std_logic;\r
- TRDYn : In std_logic;\r
- INT_REG : Out std_logic_vector (7 downto 0);\r
- INTAn : Out std_logic;\r
- PCI_INTAn : Out std_logic );\r
- end component;\r
-\r
- component FIFO_CONTROL\r
- Port ( FIFO_RDn : In std_logic;\r
- FLAG_IN_0 : In std_logic;\r
- FLAG_IN_4 : In std_logic;\r
- HOLD : In std_logic;\r
- KONST_1 : In std_logic;\r
- PCI_CLOCK : In std_logic;\r
- PSC_ENABLE : In std_logic;\r
- R_EFn : In std_logic;\r
- R_FFn : In std_logic;\r
- R_HFn : In std_logic;\r
- RESET : In std_logic;\r
- S_EFn : In std_logic;\r
- S_FFn : In std_logic;\r
- S_FIFO_Q_OUT : In std_logic_vector (7 downto 0);\r
- S_HFn : In std_logic;\r
- SERIAL_IN : In std_logic;\r
- SPC_ENABLE : In std_logic;\r
- SPC_RDY_IN : In std_logic;\r
- WRITE_XX1_0 : In std_logic;\r
- R_ERROR : Out std_logic;\r
- R_FIFO_D_IN : Out std_logic_vector (7 downto 0);\r
- R_FIFO_READn : Out std_logic;\r
- R_FIFO_RESETn : Out std_logic;\r
- R_FIFO_RETRANSMITn : Out std_logic;\r
- R_FIFO_WRITEn : Out std_logic;\r
- RESERVE : Out std_logic;\r
- S_ERROR : Out std_logic;\r
- S_FIFO_READn : Out std_logic;\r
- S_FIFO_RESETn : Out std_logic;\r
- S_FIFO_RETRANSMITn : Out std_logic;\r
- S_FIFO_WRITEn : Out std_logic;\r
- SERIAL_OUT : Out std_logic;\r
- SPC_RDY_OUT : Out std_logic;\r
- SR_ERROR : Out std_logic;\r
- SYNC_FLAG : Out std_logic_vector (7 downto 0) );\r
- end component;\r
-\r
- component PCI_TOP\r
- Port ( FLAG : In std_logic_vector (7 downto 0);\r
- INT_REG : In std_logic_vector (7 downto 0);\r
- PCI_CBEn : In std_logic_vector (3 downto 0);\r
- PCI_CLOCK : In std_logic;\r
- PCI_FRAMEn : In std_logic;\r
- PCI_IDSEL : In std_logic;\r
- PCI_IRDYn : In std_logic;\r
- PCI_RSTn : In std_logic;\r
- R_FIFO_Q : In std_logic_vector (7 downto 0);\r
- REVISON_ID : In std_logic_vector (7 downto 0);\r
- VENDOR_ID : In std_logic_vector (15 downto 0);\r
- PCI_AD : InOut std_logic_vector (31 downto 0);\r
- PCI_PAR : InOut std_logic;\r
- AD_REG : Out std_logic_vector (31 downto 0);\r
- DEVSELn : Out std_logic;\r
- FIFO_RDn : Out std_logic;\r
- PCI_DEVSELn : Out std_logic;\r
- PCI_PERRn : Out std_logic;\r
- PCI_SERRn : Out std_logic;\r
- PCI_STOPn : Out std_logic;\r
- PCI_TRDYn : Out std_logic;\r
- READ_SEL : Out std_logic_vector (1 downto 0);\r
- READ_XX1_0 : Out std_logic;\r
- READ_XX3_2 : Out std_logic;\r
- READ_XX5_4 : Out std_logic;\r
- READ_XX7_6 : Out std_logic;\r
- REG_OUT_XX0 : Out std_logic_vector (7 downto 0);\r
- REG_OUT_XX6 : Out std_logic_vector (7 downto 0);\r
- REG_OUT_XX7 : Out std_logic_vector (7 downto 0);\r
- TRDYn : Out std_logic;\r
- WRITE_XX1_0 : Out std_logic;\r
- WRITE_XX3_2 : Out std_logic;\r
- WRITE_XX5_4 : Out std_logic;\r
- WRITE_XX7_6 : Out std_logic );\r
- end component;\r
-\r
-component dhwk_fifo\r
- port (\r
- clk: IN std_logic;\r
- din: IN std_logic_VECTOR(7 downto 0);\r
- rd_en: IN std_logic;\r
- rst: IN std_logic;\r
- wr_en: IN std_logic;\r
- almost_empty: OUT std_logic;\r
- almost_full: OUT std_logic;\r
- dout: OUT std_logic_VECTOR(7 downto 0);\r
- empty: OUT std_logic;\r
- full: OUT std_logic;\r
- prog_full: OUT std_logic);\r
-end component;\r
-\r
-component icon\r
-port\r
- (\r
- control0 : out std_logic_vector(35 downto 0)\r
- );\r
-end component;\r
-\r
- component ila\r
- port\r
- (\r
- control : in std_logic_vector(35 downto 0);\r
- clk : in std_logic;\r
- data : in std_logic_vector(95 downto 0);\r
- trig0 : in std_logic_vector(31 downto 0)\r
- );\r
- end component;\r
-\r
-\r
-begin\r
- watch_PCI_REQn <= '1';\r
- SERIAL_IN <= SERIAL_OUT;\r
- SPC_RDY_IN <= SPC_RDY_OUT;\r
- LED_2 <= not PCI_RSTn;\r
- LED_3 <= PCI_IDSEL;\r
- LED_4 <= not PCI_FRAMEn;\r
- LED_5 <= not watch_PCI_INTAn;\r
- PCI_INTAn <= watch_PCI_INTAn;\r
- trig0(31 downto 0) <= (\r
- 0 => watch_PCI_INTAn,\r
- 1 => R_FIFO_READn,\r
- 2 => R_FIFO_WRITEn,\r
- 3 => S_FIFO_READn,\r
- 4 => S_FIFO_WRITEn, \r
- 5 => PCI_RSTn,\r
- 16 => PCI_AD(0),\r
- 17 => PCI_AD(1),\r
- 18 => PCI_AD(2),\r
- 19 => PCI_AD(3),\r
- 20 => PCI_AD(4),\r
- 21 => PCI_AD(5),\r
- 22 => PCI_AD(6),\r
- 23 => PCI_AD(7),\r
- 27 => PCI_FRAMEn,\r
- 28 => PCI_CBEn(0),\r
- 29 => PCI_CBEn(1),\r
- 30 => PCI_CBEn(2),\r
- 31 => PCI_CBEn(3),\r
- others => '0');\r
-\r
- data(0) <= watch_PCI_INTAn;\r
- data(1) <= R_EFn;\r
- data(2) <= R_HFn;\r
- data(3) <= R_FFn;\r
- data(4) <= R_FIFO_READn;\r
- data(5) <= R_FIFO_RESETn;\r
- data(6) <= R_FIFO_RTn;\r
- data(7) <= R_FIFO_WRITEn;\r
- data(8) <= S_EFn;\r
- data(9) <= S_HFn;\r
- data(10) <= S_FFn;\r
- data(11) <= S_FIFO_READn;\r
- data(12) <= S_FIFO_RESETn;\r
- data(13) <= S_FIFO_RTn;\r
- data(14) <= S_FIFO_WRITEn;\r
- data(15) <= SERIAL_IN;\r
- data(16) <= SPC_RDY_IN;\r
- data(17) <= SERIAL_OUT;\r
- data(18) <= SPC_RDY_OUT;\r
- data(26 downto 19) <= S_FIFO_Q_OUT;\r
- data(34 downto 27) <= R_FIFO_Q_OUT;\r
- data(66 downto 35) <= PCI_AD(31 downto 0);\r
- data(70 downto 67) <= PCI_CBEn(3 downto 0);\r
- data(71) <= PCI_FRAMEn;\r
- data(72) <= PCI_IDSEL;\r
- PCI_TRDYn <= watch_PCI_TRDYn;\r
- data(73) <= watch_PCI_TRDYn;\r
- data(74) <= PCI_IRDYn;\r
- PCI_STOPn <= watch_PCI_STOPn;\r
- data(75) <= watch_PCI_STOPn;\r
- PCI_SERRn <= watch_PCI_SERRn;\r
- data(76) <= watch_PCI_SERRn;\r
- PCI_PERRn <= watch_PCI_PERRn;\r
- data(77) <= watch_PCI_PERRn;\r
- PCI_REQn <= watch_PCI_REQn;\r
- data(78) <= watch_PCI_REQn;\r
- data(79) <= PCI_GNTn;\r
-\r
- I19 : MESS_1_TB\r
- Port Map ( DEVSELn=>DEVSELn, INTAn=>INTAn, KONST_1=>KONST_1,\r
- PCI_IDSEL=>PCI_IDSEL,\r
- REG_OUT_XX7(7 downto 0)=>REG_OUT_XX7(7 downto 0),\r
- TB_DEVSELn=>TB_nDEVSEL, TB_INTAn=>TB_nINTA,\r
- TB_PCI_IDSEL=>TB_IDSEL );\r
- I18 : VEN_REV_ID\r
- Port Map ( REV_ID(7 downto 0)=>REVISON_ID(7 downto 0),\r
- VEN_ID(15 downto 0)=>VENDOR_ID(15 downto 0) );\r
- I16 : INTERRUPT\r
- Port Map ( INT_IN_0=>SYNC_FLAG(1), INT_IN_1=>SYNC_FLAG(6),\r
- INT_IN_2=>KONST_1, INT_IN_3=>KONST_1, INT_IN_4=>KONST_1,\r
- INT_IN_5=>KONST_1, INT_IN_6=>KONST_1, INT_IN_7=>KONST_1,\r
- INT_MASKE(7 downto 0)=>REG_OUT_XX6(7 downto 0),\r
- INT_RES(7 downto 0)=>AD_REG(7 downto 0),\r
- PCI_CLOCK=>PCI_CLOCK, PCI_RSTn=>PCI_RSTn,\r
- READ_XX5_4=>READ_XX5_4, RESET=>REG_OUT_XX7(0),\r
- TAST_RESn=>TAST_RESn, TAST_SETn=>TAST_SETn,\r
- TRDYn=>TRDYn, INT_REG(7 downto 0)=>INT_REG(7 downto 0),\r
- INTAn=>INTAn, PCI_INTAn=>watch_PCI_INTAn);\r
- I14 : FIFO_CONTROL\r
- Port Map ( FIFO_RDn=>FIFO_RDn, FLAG_IN_0=>R_ERROR,\r
- FLAG_IN_4=>S_ERROR, HOLD=>READ_SEL(0), KONST_1=>KONST_1,\r
- PCI_CLOCK=>PCI_CLOCK, PSC_ENABLE=>REG_OUT_XX7(1),\r
- R_EFn=>R_EFn, R_FFn=>R_FFn, R_HFn=>R_HFn,\r
- RESET=>REG_OUT_XX7(0), S_EFn=>S_EFn, S_FFn=>S_FFn,\r
- S_FIFO_Q_OUT(7 downto 0)=>S_FIFO_Q_OUT(7 downto 0),\r
- S_HFn=>S_HFn, SERIAL_IN=>SERIAL_IN,\r
- SPC_ENABLE=>REG_OUT_XX7(2), SPC_RDY_IN=>SPC_RDY_IN,\r
- WRITE_XX1_0=>WRITE_XX1_0, R_ERROR=>R_ERROR,\r
- R_FIFO_D_IN(7 downto 0)=>R_FIFO_D_IN(7 downto 0),\r
- R_FIFO_READn=>R_FIFO_READn,\r
- R_FIFO_RESETn=>R_FIFO_RESETn,\r
- R_FIFO_RETRANSMITn=>R_FIFO_RTn,\r
- R_FIFO_WRITEn=>R_FIFO_WRITEn, RESERVE=>RESERVE,\r
- S_ERROR=>S_ERROR, S_FIFO_READn=>S_FIFO_READn,\r
- S_FIFO_RESETn=>S_FIFO_RESETn,\r
- S_FIFO_RETRANSMITn=>S_FIFO_RTn,\r
- S_FIFO_WRITEn=>S_FIFO_WRITEn, SERIAL_OUT=>SERIAL_OUT,\r
- SPC_RDY_OUT=>SPC_RDY_OUT, SR_ERROR=>SR_ERROR,\r
- SYNC_FLAG(7 downto 0)=>SYNC_FLAG(7 downto 0) );\r
- I1 : PCI_TOP\r
- Port Map ( FLAG(7 downto 0)=>SYNC_FLAG(7 downto 0),\r
- INT_REG(7 downto 0)=>INT_REG(7 downto 0),\r
- PCI_CBEn(3 downto 0)=>PCI_CBEn(3 downto 0),\r
- PCI_CLOCK=>PCI_CLOCK, PCI_FRAMEn=>PCI_FRAMEn,\r
- PCI_IDSEL=>PCI_IDSEL, PCI_IRDYn=>PCI_IRDYn,\r
- PCI_RSTn=>PCI_RSTn,\r
- R_FIFO_Q(7 downto 0)=>R_FIFO_Q_OUT(7 downto 0),\r
- REVISON_ID(7 downto 0)=>REVISON_ID(7 downto 0),\r
- VENDOR_ID(15 downto 0)=>VENDOR_ID(15 downto 0),\r
- PCI_AD(31 downto 0)=>PCI_AD(31 downto 0),\r
- PCI_PAR=>PCI_PAR,\r
- AD_REG(31 downto 0)=>AD_REG(31 downto 0),\r
- DEVSELn=>DEVSELn, FIFO_RDn=>FIFO_RDn,\r
- PCI_DEVSELn=>PCI_DEVSELn, PCI_PERRn=>watch_PCI_PERRn,\r
- PCI_SERRn=>watch_PCI_SERRn, PCI_STOPn=>watch_PCI_STOPn,\r
- PCI_TRDYn=>watch_PCI_TRDYn,\r
- READ_SEL(1 downto 0)=>READ_SEL(1 downto 0),\r
- READ_XX1_0=>READ_XX1_0, READ_XX3_2=>READ_XX3_2,\r
- READ_XX5_4=>READ_XX5_4, READ_XX7_6=>READ_XX7_6,\r
- REG_OUT_XX0(7 downto 0)=>S_FIFO_D_IN(7 downto 0),\r
- REG_OUT_XX6(7 downto 0)=>REG_OUT_XX6(7 downto 0),\r
- REG_OUT_XX7(7 downto 0)=>REG_OUT_XX7(7 downto 0),\r
- TRDYn=>TRDYn, WRITE_XX1_0=>WRITE_XX1_0,\r
- WRITE_XX3_2=>WRITE_XX3_2, WRITE_XX5_4=>WRITE_XX5_4,\r
- WRITE_XX7_6=>WRITE_XX7_6 );\r
-\r
-receive_fifo : dhwk_fifo\r
- port map (\r
- clk => PCI_CLOCK,\r
- din => R_FIFO_D_IN,\r
- rd_en => not R_FIFO_READn,\r
- rst => not R_FIFO_RESETn,\r
- wr_en => not R_FIFO_WRITEn,\r
- dout => R_FIFO_Q_OUT,\r
- empty => R_EFn,\r
- full => R_FFn,\r
- prog_full => R_HFn);\r
-\r
-send_fifo : dhwk_fifo\r
- port map (\r
- clk => PCI_CLOCK,\r
- din => S_FIFO_D_IN,\r
- rd_en => not S_FIFO_READn,\r
- rst => not S_FIFO_RESETn,\r
- wr_en => not S_FIFO_WRITEn,\r
- dout => S_FIFO_Q_OUT,\r
- empty => S_EFn,\r
- full => S_FFn,\r
- prog_full => S_HFn);\r
-\r
- i_icon : icon\r
- port map\r
- (\r
- control0 => control0\r
- );\r
-\r
- i_ila : ila\r
- port map\r
- (\r
- control => control0,\r
- clk => PCI_CLOCK,\r
- data => data,\r
- trig0 => trig0\r
- );\r
-end SCHEMATIC;\r
+-- VHDL model created from schematic top.sch -- Jan 09 20:54:18 2007
+
+
+
+LIBRARY ieee;
+
+USE ieee.std_logic_1164.ALL;
+USE ieee.numeric_std.ALL;
+
+
+entity dhwk is
+ Port ( KONST_1 : In std_logic;
+ PCI_CBEn : In std_logic_vector (3 downto 0);
+ PCI_CLOCK : In std_logic;
+ PCI_FRAMEn : In std_logic;
+ PCI_IDSEL : In std_logic;
+ PCI_IRDYn : In std_logic;
+ PCI_RSTn : In std_logic;
+-- SERIAL_IN : In std_logic;
+-- SPC_RDY_IN : In std_logic;
+ TAST_RESn : In std_logic;
+ TAST_SETn : In std_logic;
+ LED_2 : out std_logic;
+ LED_3 : out std_logic;
+ LED_4 : out std_logic;
+ LED_5 : out std_logic;
+ PCI_AD : InOut std_logic_vector (31 downto 0);
+ PCI_PAR : InOut std_logic;
+ PCI_DEVSELn : Out std_logic;
+ PCI_INTAn : Out std_logic;
+ PCI_PERRn : Out std_logic;
+ PCI_SERRn : Out std_logic;
+ PCI_STOPn : Out std_logic;
+ PCI_TRDYn : Out std_logic;
+ PCI_REQn : Out std_logic;
+ PCI_GNTn : In std_logic;
+-- SERIAL_OUT : Out std_logic;
+-- SPC_RDY_OUT : Out std_logic;
+ TB_IDSEL : Out std_logic;
+ TB_nDEVSEL : Out std_logic;
+ TB_nINTA : Out std_logic );
+end dhwk;
+
+architecture SCHEMATIC of dhwk is
+
+ SIGNAL gnd : std_logic := '0';
+ SIGNAL vcc : std_logic := '1';
+
+ signal READ_XX7_6 : std_logic;
+ signal RESERVE : std_logic;
+ signal SR_ERROR : std_logic;
+ signal R_ERROR : std_logic;
+ signal S_ERROR : std_logic;
+ signal WRITE_XX3_2 : std_logic;
+ signal WRITE_XX5_4 : std_logic;
+ signal WRITE_XX7_6 : std_logic;
+ signal READ_XX1_0 : std_logic;
+ signal READ_XX3_2 : std_logic;
+ signal INTAn : std_logic;
+ signal TRDYn : std_logic;
+ signal READ_XX5_4 : std_logic;
+ signal DEVSELn : std_logic;
+ signal FIFO_RDn : std_logic;
+ signal WRITE_XX1_0 : std_logic;
+ signal REG_OUT_XX6 : std_logic_vector (7 downto 0);
+ signal SYNC_FLAG : std_logic_vector (7 downto 0);
+ signal INT_REG : std_logic_vector (7 downto 0);
+ signal REVISON_ID : std_logic_vector (7 downto 0);
+ signal VENDOR_ID : std_logic_vector (15 downto 0);
+ signal READ_SEL : std_logic_vector (1 downto 0);
+ signal AD_REG : std_logic_vector (31 downto 0);
+ signal REG_OUT_XX7 : std_logic_vector (7 downto 0);
+ signal R_EFn : std_logic;
+ signal R_FFn : std_logic;
+ signal R_FIFO_Q_OUT : std_logic_vector (7 downto 0);
+ signal R_HFn : std_logic;
+ signal S_EFn : std_logic;
+ signal S_FFn : std_logic;
+ signal S_FIFO_Q_OUT : std_logic_vector (7 downto 0);
+ signal S_HFn : std_logic;
+ signal R_FIFO_D_IN : std_logic_vector (7 downto 0);
+ signal R_FIFO_READn : std_logic;
+ signal R_FIFO_RESETn : std_logic;
+ signal R_FIFO_RTn : std_logic;
+ signal R_FIFO_WRITEn : std_logic;
+ signal S_FIFO_D_IN : std_logic_vector (7 downto 0);
+ signal S_FIFO_READn : std_logic;
+ signal S_FIFO_RESETn : std_logic;
+ signal S_FIFO_RTn : std_logic;
+ signal S_FIFO_WRITEn : std_logic;
+ signal SERIAL_IN : std_logic;
+ signal SPC_RDY_IN : std_logic;
+ signal SERIAL_OUT : std_logic;
+ signal SPC_RDY_OUT : std_logic;
+ signal watch_PCI_INTAn : std_logic;
+ signal watch_PCI_TRDYn : std_logic;
+ signal watch_PCI_STOPn : std_logic;
+ signal watch_PCI_SERRn : std_logic;
+ signal watch_PCI_PERRn : std_logic;
+ signal watch_PCI_REQn : std_logic;
+ signal control0 : std_logic_vector(35 downto 0);
+ signal data : std_logic_vector(95 downto 0);
+ signal trig0 : std_logic_vector(31 downto 0);
+
+ component MESS_1_TB
+ Port ( DEVSELn : In std_logic;
+ INTAn : In std_logic;
+ KONST_1 : In std_logic;
+ PCI_IDSEL : In std_logic;
+ REG_OUT_XX7 : In std_logic_vector (7 downto 0);
+ TB_DEVSELn : Out std_logic;
+ TB_INTAn : Out std_logic;
+ TB_PCI_IDSEL : Out std_logic );
+ end component;
+
+ component VEN_REV_ID
+ Port ( REV_ID : Out std_logic_vector (7 downto 0);
+ VEN_ID : Out std_logic_vector (15 downto 0) );
+ end component;
+
+ component INTERRUPT
+ Port ( INT_IN_0 : In std_logic;
+ INT_IN_1 : In std_logic;
+ INT_IN_2 : In std_logic;
+ INT_IN_3 : In std_logic;
+ INT_IN_4 : In std_logic;
+ INT_IN_5 : In std_logic;
+ INT_IN_6 : In std_logic;
+ INT_IN_7 : In std_logic;
+ INT_MASKE : In std_logic_vector (7 downto 0);
+ INT_RES : In std_logic_vector (7 downto 0);
+ PCI_CLOCK : In std_logic;
+ PCI_RSTn : In std_logic;
+ READ_XX5_4 : In std_logic;
+ RESET : In std_logic;
+ TAST_RESn : In std_logic;
+ TAST_SETn : In std_logic;
+ TRDYn : In std_logic;
+ INT_REG : Out std_logic_vector (7 downto 0);
+ INTAn : Out std_logic;
+ PCI_INTAn : Out std_logic );
+ end component;
+
+ component FIFO_CONTROL
+ Port ( FIFO_RDn : In std_logic;
+ FLAG_IN_0 : In std_logic;
+ FLAG_IN_4 : In std_logic;
+ HOLD : In std_logic;
+ KONST_1 : In std_logic;
+ PCI_CLOCK : In std_logic;
+ PSC_ENABLE : In std_logic;
+ R_EFn : In std_logic;
+ R_FFn : In std_logic;
+ R_HFn : In std_logic;
+ RESET : In std_logic;
+ S_EFn : In std_logic;
+ S_FFn : In std_logic;
+ S_FIFO_Q_OUT : In std_logic_vector (7 downto 0);
+ S_HFn : In std_logic;
+ SERIAL_IN : In std_logic;
+ SPC_ENABLE : In std_logic;
+ SPC_RDY_IN : In std_logic;
+ WRITE_XX1_0 : In std_logic;
+ R_ERROR : Out std_logic;
+ R_FIFO_D_IN : Out std_logic_vector (7 downto 0);
+ R_FIFO_READn : Out std_logic;
+ R_FIFO_RESETn : Out std_logic;
+ R_FIFO_RETRANSMITn : Out std_logic;
+ R_FIFO_WRITEn : Out std_logic;
+ RESERVE : Out std_logic;
+ S_ERROR : Out std_logic;
+ S_FIFO_READn : Out std_logic;
+ S_FIFO_RESETn : Out std_logic;
+ S_FIFO_RETRANSMITn : Out std_logic;
+ S_FIFO_WRITEn : Out std_logic;
+ SERIAL_OUT : Out std_logic;
+ SPC_RDY_OUT : Out std_logic;
+ SR_ERROR : Out std_logic;
+ SYNC_FLAG : Out std_logic_vector (7 downto 0) );
+ end component;
+
+ component PCI_TOP
+ Port ( FLAG : In std_logic_vector (7 downto 0);
+ INT_REG : In std_logic_vector (7 downto 0);
+ PCI_CBEn : In std_logic_vector (3 downto 0);
+ PCI_CLOCK : In std_logic;
+ PCI_FRAMEn : In std_logic;
+ PCI_IDSEL : In std_logic;
+ PCI_IRDYn : In std_logic;
+ PCI_RSTn : In std_logic;
+ R_FIFO_Q : In std_logic_vector (7 downto 0);
+ REVISON_ID : In std_logic_vector (7 downto 0);
+ VENDOR_ID : In std_logic_vector (15 downto 0);
+ PCI_AD : InOut std_logic_vector (31 downto 0);
+ PCI_PAR : InOut std_logic;
+ AD_REG : Out std_logic_vector (31 downto 0);
+ DEVSELn : Out std_logic;
+ FIFO_RDn : Out std_logic;
+ PCI_DEVSELn : Out std_logic;
+ PCI_PERRn : Out std_logic;
+ PCI_SERRn : Out std_logic;
+ PCI_STOPn : Out std_logic;
+ PCI_TRDYn : Out std_logic;
+ READ_SEL : Out std_logic_vector (1 downto 0);
+ READ_XX1_0 : Out std_logic;
+ READ_XX3_2 : Out std_logic;
+ READ_XX5_4 : Out std_logic;
+ READ_XX7_6 : Out std_logic;
+ REG_OUT_XX0 : Out std_logic_vector (7 downto 0);
+ REG_OUT_XX6 : Out std_logic_vector (7 downto 0);
+ REG_OUT_XX7 : Out std_logic_vector (7 downto 0);
+ TRDYn : Out std_logic;
+ WRITE_XX1_0 : Out std_logic;
+ WRITE_XX3_2 : Out std_logic;
+ WRITE_XX5_4 : Out std_logic;
+ WRITE_XX7_6 : Out std_logic );
+ end component;
+
+component dhwk_fifo
+ port (
+ clk: IN std_logic;
+ din: IN std_logic_VECTOR(7 downto 0);
+ rd_en: IN std_logic;
+ rst: IN std_logic;
+ wr_en: IN std_logic;
+ almost_empty: OUT std_logic;
+ almost_full: OUT std_logic;
+ dout: OUT std_logic_VECTOR(7 downto 0);
+ empty: OUT std_logic;
+ full: OUT std_logic;
+ prog_full: OUT std_logic);
+end component;
+
+component icon
+port
+ (
+ control0 : out std_logic_vector(35 downto 0)
+ );
+end component;
+
+ component ila
+ port
+ (
+ control : in std_logic_vector(35 downto 0);
+ clk : in std_logic;
+ data : in std_logic_vector(95 downto 0);
+ trig0 : in std_logic_vector(31 downto 0)
+ );
+ end component;
+
+
+begin
+ watch_PCI_REQn <= '1';
+ SERIAL_IN <= SERIAL_OUT;
+ SPC_RDY_IN <= SPC_RDY_OUT;
+ LED_2 <= not PCI_RSTn;
+ LED_3 <= PCI_IDSEL;
+ LED_4 <= not PCI_FRAMEn;
+ LED_5 <= not watch_PCI_INTAn;
+ PCI_INTAn <= watch_PCI_INTAn;
+ trig0(31 downto 0) <= (
+ 0 => watch_PCI_INTAn,
+ 1 => R_FIFO_READn,
+ 2 => R_FIFO_WRITEn,
+ 3 => S_FIFO_READn,
+ 4 => S_FIFO_WRITEn,
+ 5 => PCI_RSTn,
+ 16 => PCI_AD(0),
+ 17 => PCI_AD(1),
+ 18 => PCI_AD(2),
+ 19 => PCI_AD(3),
+ 20 => PCI_AD(4),
+ 21 => PCI_AD(5),
+ 22 => PCI_AD(6),
+ 23 => PCI_AD(7),
+ 27 => PCI_FRAMEn,
+ 28 => PCI_CBEn(0),
+ 29 => PCI_CBEn(1),
+ 30 => PCI_CBEn(2),
+ 31 => PCI_CBEn(3),
+ others => '0');
+
+ data(0) <= watch_PCI_INTAn;
+ data(1) <= R_EFn;
+ data(2) <= R_HFn;
+ data(3) <= R_FFn;
+ data(4) <= R_FIFO_READn;
+ data(5) <= R_FIFO_RESETn;
+ data(6) <= R_FIFO_RTn;
+ data(7) <= R_FIFO_WRITEn;
+ data(8) <= S_EFn;
+ data(9) <= S_HFn;
+ data(10) <= S_FFn;
+ data(11) <= S_FIFO_READn;
+ data(12) <= S_FIFO_RESETn;
+ data(13) <= S_FIFO_RTn;
+ data(14) <= S_FIFO_WRITEn;
+ data(15) <= SERIAL_IN;
+ data(16) <= SPC_RDY_IN;
+ data(17) <= SERIAL_OUT;
+ data(18) <= SPC_RDY_OUT;
+ data(26 downto 19) <= S_FIFO_Q_OUT;
+ data(34 downto 27) <= R_FIFO_Q_OUT;
+ data(66 downto 35) <= PCI_AD(31 downto 0);
+ data(70 downto 67) <= PCI_CBEn(3 downto 0);
+ data(71) <= PCI_FRAMEn;
+ data(72) <= PCI_IDSEL;
+ PCI_TRDYn <= watch_PCI_TRDYn;
+ data(73) <= watch_PCI_TRDYn;
+ data(74) <= PCI_IRDYn;
+ PCI_STOPn <= watch_PCI_STOPn;
+ data(75) <= watch_PCI_STOPn;
+ PCI_SERRn <= watch_PCI_SERRn;
+ data(76) <= watch_PCI_SERRn;
+ PCI_PERRn <= watch_PCI_PERRn;
+ data(77) <= watch_PCI_PERRn;
+ PCI_REQn <= watch_PCI_REQn;
+ data(78) <= watch_PCI_REQn;
+ data(79) <= PCI_GNTn;
+
+ I19 : MESS_1_TB
+ Port Map ( DEVSELn=>DEVSELn, INTAn=>INTAn, KONST_1=>KONST_1,
+ PCI_IDSEL=>PCI_IDSEL,
+ REG_OUT_XX7(7 downto 0)=>REG_OUT_XX7(7 downto 0),
+ TB_DEVSELn=>TB_nDEVSEL, TB_INTAn=>TB_nINTA,
+ TB_PCI_IDSEL=>TB_IDSEL );
+ I18 : VEN_REV_ID
+ Port Map ( REV_ID(7 downto 0)=>REVISON_ID(7 downto 0),
+ VEN_ID(15 downto 0)=>VENDOR_ID(15 downto 0) );
+ I16 : INTERRUPT
+ Port Map ( INT_IN_0=>SYNC_FLAG(1), INT_IN_1=>SYNC_FLAG(6),
+ INT_IN_2=>KONST_1, INT_IN_3=>KONST_1, INT_IN_4=>KONST_1,
+ INT_IN_5=>KONST_1, INT_IN_6=>KONST_1, INT_IN_7=>KONST_1,
+ INT_MASKE(7 downto 0)=>REG_OUT_XX6(7 downto 0),
+ INT_RES(7 downto 0)=>AD_REG(7 downto 0),
+ PCI_CLOCK=>PCI_CLOCK, PCI_RSTn=>PCI_RSTn,
+ READ_XX5_4=>READ_XX5_4, RESET=>REG_OUT_XX7(0),
+ TAST_RESn=>TAST_RESn, TAST_SETn=>TAST_SETn,
+ TRDYn=>TRDYn, INT_REG(7 downto 0)=>INT_REG(7 downto 0),
+ INTAn=>INTAn, PCI_INTAn=>watch_PCI_INTAn);
+ I14 : FIFO_CONTROL
+ Port Map ( FIFO_RDn=>FIFO_RDn, FLAG_IN_0=>R_ERROR,
+ FLAG_IN_4=>S_ERROR, HOLD=>READ_SEL(0), KONST_1=>KONST_1,
+ PCI_CLOCK=>PCI_CLOCK, PSC_ENABLE=>REG_OUT_XX7(1),
+ R_EFn=>R_EFn, R_FFn=>R_FFn, R_HFn=>R_HFn,
+ RESET=>REG_OUT_XX7(0), S_EFn=>S_EFn, S_FFn=>S_FFn,
+ S_FIFO_Q_OUT(7 downto 0)=>S_FIFO_Q_OUT(7 downto 0),
+ S_HFn=>S_HFn, SERIAL_IN=>SERIAL_IN,
+ SPC_ENABLE=>REG_OUT_XX7(2), SPC_RDY_IN=>SPC_RDY_IN,
+ WRITE_XX1_0=>WRITE_XX1_0, R_ERROR=>R_ERROR,
+ R_FIFO_D_IN(7 downto 0)=>R_FIFO_D_IN(7 downto 0),
+ R_FIFO_READn=>R_FIFO_READn,
+ R_FIFO_RESETn=>R_FIFO_RESETn,
+ R_FIFO_RETRANSMITn=>R_FIFO_RTn,
+ R_FIFO_WRITEn=>R_FIFO_WRITEn, RESERVE=>RESERVE,
+ S_ERROR=>S_ERROR, S_FIFO_READn=>S_FIFO_READn,
+ S_FIFO_RESETn=>S_FIFO_RESETn,
+ S_FIFO_RETRANSMITn=>S_FIFO_RTn,
+ S_FIFO_WRITEn=>S_FIFO_WRITEn, SERIAL_OUT=>SERIAL_OUT,
+ SPC_RDY_OUT=>SPC_RDY_OUT, SR_ERROR=>SR_ERROR,
+ SYNC_FLAG(7 downto 0)=>SYNC_FLAG(7 downto 0) );
+ I1 : PCI_TOP
+ Port Map ( FLAG(7 downto 0)=>SYNC_FLAG(7 downto 0),
+ INT_REG(7 downto 0)=>INT_REG(7 downto 0),
+ PCI_CBEn(3 downto 0)=>PCI_CBEn(3 downto 0),
+ PCI_CLOCK=>PCI_CLOCK, PCI_FRAMEn=>PCI_FRAMEn,
+ PCI_IDSEL=>PCI_IDSEL, PCI_IRDYn=>PCI_IRDYn,
+ PCI_RSTn=>PCI_RSTn,
+ R_FIFO_Q(7 downto 0)=>R_FIFO_Q_OUT(7 downto 0),
+ REVISON_ID(7 downto 0)=>REVISON_ID(7 downto 0),
+ VENDOR_ID(15 downto 0)=>VENDOR_ID(15 downto 0),
+ PCI_AD(31 downto 0)=>PCI_AD(31 downto 0),
+ PCI_PAR=>PCI_PAR,
+ AD_REG(31 downto 0)=>AD_REG(31 downto 0),
+ DEVSELn=>DEVSELn, FIFO_RDn=>FIFO_RDn,
+ PCI_DEVSELn=>PCI_DEVSELn, PCI_PERRn=>watch_PCI_PERRn,
+ PCI_SERRn=>watch_PCI_SERRn, PCI_STOPn=>watch_PCI_STOPn,
+ PCI_TRDYn=>watch_PCI_TRDYn,
+ READ_SEL(1 downto 0)=>READ_SEL(1 downto 0),
+ READ_XX1_0=>READ_XX1_0, READ_XX3_2=>READ_XX3_2,
+ READ_XX5_4=>READ_XX5_4, READ_XX7_6=>READ_XX7_6,
+ REG_OUT_XX0(7 downto 0)=>S_FIFO_D_IN(7 downto 0),
+ REG_OUT_XX6(7 downto 0)=>REG_OUT_XX6(7 downto 0),
+ REG_OUT_XX7(7 downto 0)=>REG_OUT_XX7(7 downto 0),
+ TRDYn=>TRDYn, WRITE_XX1_0=>WRITE_XX1_0,
+ WRITE_XX3_2=>WRITE_XX3_2, WRITE_XX5_4=>WRITE_XX5_4,
+ WRITE_XX7_6=>WRITE_XX7_6 );
+
+receive_fifo : dhwk_fifo
+ port map (
+ clk => PCI_CLOCK,
+ din => R_FIFO_D_IN,
+ rd_en => not R_FIFO_READn,
+ rst => not R_FIFO_RESETn,
+ wr_en => not R_FIFO_WRITEn,
+ dout => R_FIFO_Q_OUT,
+ empty => R_EFn,
+ full => R_FFn,
+ prog_full => R_HFn);
+
+send_fifo : dhwk_fifo
+ port map (
+ clk => PCI_CLOCK,
+ din => S_FIFO_D_IN,
+ rd_en => not S_FIFO_READn,
+ rst => not S_FIFO_RESETn,
+ wr_en => not S_FIFO_WRITEn,
+ dout => S_FIFO_Q_OUT,
+ empty => S_EFn,
+ full => S_FFn,
+ prog_full => S_HFn);
+
+ i_icon : icon
+ port map
+ (
+ control0 => control0
+ );
+
+ i_ila : ila
+ port map
+ (
+ control => control0,
+ clk => PCI_CLOCK,
+ data => data,
+ trig0 => trig0
+ );
+end SCHEMATIC;