data/full_repos/permissive/16195249/top/c5sx_soc.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Error: data/full_repos/permissive/16195249/top/c5sx_soc.v:1: Cannot find include file: top/config_soc.v\n`include "top/config_soc.v" \n         ^~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/16195249/top,data/full_repos/permissive/16195249/top/config_soc.v\n             data/full_repos/permissive/16195249/top,data/full_repos/permissive/16195249/top/config_soc.v.v\n             data/full_repos/permissive/16195249/top,data/full_repos/permissive/16195249/top/config_soc.v.sv\n             top/config_soc.v\n             top/config_soc.v.v\n             top/config_soc.v.sv\n             obj_dir/top/config_soc.v\n             obj_dir/top/config_soc.v.v\n             obj_dir/top/config_soc.v.sv\n%Error: data/full_repos/permissive/16195249/top/c5sx_soc.v:208: syntax error, unexpected \')\', expecting \'[\'\n);\n^\n%Error: data/full_repos/permissive/16195249/top/c5sx_soc.v:219: syntax error, unexpected IDENTIFIER\ndebounce debounce_inst (\n^~~~~~~~\n%Error: data/full_repos/permissive/16195249/top/c5sx_soc.v:238: syntax error, unexpected IDENTIFIER\n    soc_system u0 (\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/16195249/top/c5sx_soc.v:347: syntax error, unexpected assign\nassign fan_ctrl = 1\'b1;\n^~~~~~\n%Error: Exiting due to 5 error(s)\n'
module c5sx_soc(









		output wire [14:0] memory_mem_a,
		output wire [2:0]  memory_mem_ba,
		output wire        memory_mem_ck,
		output wire        memory_mem_ck_n,
		output wire        memory_mem_cke,
		output wire        memory_mem_cs_n,
		output wire        memory_mem_ras_n,
		output wire        memory_mem_cas_n,
		output wire        memory_mem_we_n,
		output wire        memory_mem_reset_n,
		inout  wire [31:0] memory_mem_dq,
		inout  wire [3:0]  memory_mem_dqs,
		inout  wire [3:0]  memory_mem_dqs_n,
		output wire        memory_mem_odt,
		output wire [3:0]  memory_mem_dm,
		input  wire        memory_oct_rzqin,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TX_CLK,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TXD0,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TXD1,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TXD2,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TXD3,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RXD0,
		inout  wire        hps_0_hps_io_hps_io_emac1_inst_MDIO,
		output wire        hps_0_hps_io_hps_io_emac1_inst_MDC,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RX_CTL,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TX_CTL,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RX_CLK,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RXD1,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RXD2,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RXD3,
		inout  wire        hps_0_hps_io_hps_io_qspi_inst_IO0,
		inout  wire        hps_0_hps_io_hps_io_qspi_inst_IO1,
		inout  wire        hps_0_hps_io_hps_io_qspi_inst_IO2,
		inout  wire        hps_0_hps_io_hps_io_qspi_inst_IO3,
		output wire        hps_0_hps_io_hps_io_qspi_inst_SS0,
		output wire        hps_0_hps_io_hps_io_qspi_inst_CLK,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_CMD,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_D0,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_D1,
		output wire        hps_0_hps_io_hps_io_sdio_inst_CLK,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_D2,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_D3,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D0,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D1,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D2,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D3,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D4,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D5,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D6,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D7,
		input  wire        hps_0_hps_io_hps_io_usb1_inst_CLK,
		output wire        hps_0_hps_io_hps_io_usb1_inst_STP,
		input  wire        hps_0_hps_io_hps_io_usb1_inst_DIR,
		input  wire        hps_0_hps_io_hps_io_usb1_inst_NXT,
		output wire        hps_0_hps_io_hps_io_spim0_inst_CLK,
		output wire        hps_0_hps_io_hps_io_spim0_inst_MOSI,
		input  wire        hps_0_hps_io_hps_io_spim0_inst_MISO,
		output wire        hps_0_hps_io_hps_io_spim0_inst_SS0,
		output wire        hps_0_hps_io_hps_io_spim1_inst_CLK,
		output wire        hps_0_hps_io_hps_io_spim1_inst_MOSI,
		input  wire        hps_0_hps_io_hps_io_spim1_inst_MISO,
		output wire        hps_0_hps_io_hps_io_spim1_inst_SS0,
		input  wire        hps_0_hps_io_hps_io_uart0_inst_RX,
		output wire        hps_0_hps_io_hps_io_uart0_inst_TX,
		inout  wire        hps_0_hps_io_hps_io_i2c1_inst_SDA,
		inout  wire        hps_0_hps_io_hps_io_i2c1_inst_SCL,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO00,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO09,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO35,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO48,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO53,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO54,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO55,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO56,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO61,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO62,









	

   input          clk_100m_fpga,
   input          clk_50m_fpga,
	input          clk_top1,
   input          clk_bot1,
	input          fpga_resetn,


   output   wire  clk_i2c_sclk,
   inout    wire  clk_i2c_sdat,
             
`ifdef user_peripheral

 	input	 [3:0]   user_dipsw_fpga,
	output [3:0]   user_led_fpga,
	input	 [3:0]   user_pb_fpga,
  	input  	wire  irda_rxd,
  	output  	wire  fan_ctrl,
`endif
	
`ifdef ddr3

   output [14:0]  ddr3_fpga_a,
   output [2:0]   ddr3_fpga_ba,
	output         ddr3_fpga_casn,
	output         ddr3_fpga_cke,
	output         ddr3_fpga_clk_n,
	output         ddr3_fpga_clk_p,
   output         ddr3_fpga_csn,
   output [3:0]   ddr3_fpga_dm,
   inout  [31:0]  ddr3_fpga_dq,
   inout  [3:0]   ddr3_fpga_dqs_n,
   inout  [3:0]   ddr3_fpga_dqs_p,
   output         ddr3_fpga_odt,
   input          ddr3_fpga_rasn,
   input          ddr3_fpga_resetn,
   input          ddr3_fpga_wen,
	input          ddr3_fpga_rzq,


`endif

`ifdef temp_sense


   output   wire  temp_cs_n,
   output   wire  temp_sclk,
   output   wire  temp_mosi,
   input    wire  temp_miso,
`endif

`ifdef vga

   output 	wire  vga_clk,
   output 	wire  vga_hs,
   output 	wire  vga_vs,
   output   wire  [7:0] vga_r,
   output   wire  [7:0] vga_g,
   output   wire  [7:0] vga_b,
   output 	wire  vga_blank_n,
   output 	wire  vga_sync_n
`endif

`ifdef audio

   input 	wire  aud_adcdat,
   input 	wire  aud_adclrck,
   input 	wire  aud_bclk,
   output 	wire  aud_dacdat,
   inout 	wire  aud_daclrck,
	output   wire  aud_i2c_sclk,                                       
	inout    wire  aud_i2c_sdat,                                          
	output   wire  aud_mute,                                      
	output   wire  aud_xck,    
`endif






























   



);
    

  wire [1:0] fpga_debounced_buttons;
  wire [3:0] fpga_led_internal;
  wire       hps_fpga_reset_n;



	 

debounce debounce_inst (
  .clk                                  (clk_50m_fpga),
  .reset_n                              (hps_fpga_reset_n),  
  .data_in                              (user_pb_fpga),
  .data_out                             (fpga_debounced_buttons)
);
  defparam debounce_inst.WIDTH = 2;
  defparam debounce_inst.POLARITY = "LOW";
  defparam debounce_inst.TIMEOUT = 50000;
  defparam debounce_inst.TIMEOUT_WIDTH = 16;
  

pll_vga pll_vga_inst(
		.refclk(clk_50m_fpga),
		.rst(1'b0),
		.outclk_0(vga_clk_25m)
	);  
wire vga_clk_25m;	 
wire [7:0]  vga_color;
    soc_system u0 (
        .clk_clk                               (clk_bot1),
        .reset_reset_n                         (hps_fpga_reset_n),
        .memory_mem_a                          (memory_mem_a),
        .memory_mem_ba                         (memory_mem_ba),
        .memory_mem_ck                         (memory_mem_ck),
        .memory_mem_ck_n                       (memory_mem_ck_n),
        .memory_mem_cke                        (memory_mem_cke),
        .memory_mem_cs_n                       (memory_mem_cs_n),
        .memory_mem_ras_n                      (memory_mem_ras_n),
        .memory_mem_cas_n                      (memory_mem_cas_n),
        .memory_mem_we_n                       (memory_mem_we_n),
        .memory_mem_reset_n                    (memory_mem_reset_n),
        .memory_mem_dq                         (memory_mem_dq),
        .memory_mem_dqs                        (memory_mem_dqs),
        .memory_mem_dqs_n                      (memory_mem_dqs_n),
        .memory_mem_odt                        (memory_mem_odt),
        .memory_mem_dm                         (memory_mem_dm),
        .memory_oct_rzqin                      (memory_oct_rzqin),
        .hps_0_hps_io_hps_io_emac1_inst_TX_CLK (hps_0_hps_io_hps_io_emac1_inst_TX_CLK),
        .hps_0_hps_io_hps_io_emac1_inst_TXD0   (hps_0_hps_io_hps_io_emac1_inst_TXD0),
        .hps_0_hps_io_hps_io_emac1_inst_TXD1   (hps_0_hps_io_hps_io_emac1_inst_TXD1),
        .hps_0_hps_io_hps_io_emac1_inst_TXD2   (hps_0_hps_io_hps_io_emac1_inst_TXD2),
        .hps_0_hps_io_hps_io_emac1_inst_TXD3   (hps_0_hps_io_hps_io_emac1_inst_TXD3),
        .hps_0_hps_io_hps_io_emac1_inst_RXD0   (hps_0_hps_io_hps_io_emac1_inst_RXD0),
        .hps_0_hps_io_hps_io_emac1_inst_MDIO   (hps_0_hps_io_hps_io_emac1_inst_MDIO),
        .hps_0_hps_io_hps_io_emac1_inst_MDC    (hps_0_hps_io_hps_io_emac1_inst_MDC),
        .hps_0_hps_io_hps_io_emac1_inst_RX_CTL (hps_0_hps_io_hps_io_emac1_inst_RX_CTL),
        .hps_0_hps_io_hps_io_emac1_inst_TX_CTL (hps_0_hps_io_hps_io_emac1_inst_TX_CTL),
        .hps_0_hps_io_hps_io_emac1_inst_RX_CLK (hps_0_hps_io_hps_io_emac1_inst_RX_CLK),
        .hps_0_hps_io_hps_io_emac1_inst_RXD1   (hps_0_hps_io_hps_io_emac1_inst_RXD1),
        .hps_0_hps_io_hps_io_emac1_inst_RXD2   (hps_0_hps_io_hps_io_emac1_inst_RXD2),
        .hps_0_hps_io_hps_io_emac1_inst_RXD3   (hps_0_hps_io_hps_io_emac1_inst_RXD3),
        .hps_0_hps_io_hps_io_qspi_inst_IO0     (hps_0_hps_io_hps_io_qspi_inst_IO0),
        .hps_0_hps_io_hps_io_qspi_inst_IO1     (hps_0_hps_io_hps_io_qspi_inst_IO1),
        .hps_0_hps_io_hps_io_qspi_inst_IO2     (hps_0_hps_io_hps_io_qspi_inst_IO2),
        .hps_0_hps_io_hps_io_qspi_inst_IO3     (hps_0_hps_io_hps_io_qspi_inst_IO3),
        .hps_0_hps_io_hps_io_qspi_inst_SS0     (hps_0_hps_io_hps_io_qspi_inst_SS0),
        .hps_0_hps_io_hps_io_qspi_inst_CLK     (hps_0_hps_io_hps_io_qspi_inst_CLK),
        .hps_0_hps_io_hps_io_sdio_inst_CMD     (hps_0_hps_io_hps_io_sdio_inst_CMD),
        .hps_0_hps_io_hps_io_sdio_inst_D0      (hps_0_hps_io_hps_io_sdio_inst_D0),
        .hps_0_hps_io_hps_io_sdio_inst_D1      (hps_0_hps_io_hps_io_sdio_inst_D1),
        .hps_0_hps_io_hps_io_sdio_inst_CLK     (hps_0_hps_io_hps_io_sdio_inst_CLK),
        .hps_0_hps_io_hps_io_sdio_inst_D2      (hps_0_hps_io_hps_io_sdio_inst_D2),
        .hps_0_hps_io_hps_io_sdio_inst_D3      (hps_0_hps_io_hps_io_sdio_inst_D3),
        .hps_0_hps_io_hps_io_usb1_inst_D0      (hps_0_hps_io_hps_io_usb1_inst_D0),
        .hps_0_hps_io_hps_io_usb1_inst_D1      (hps_0_hps_io_hps_io_usb1_inst_D1),
        .hps_0_hps_io_hps_io_usb1_inst_D2      (hps_0_hps_io_hps_io_usb1_inst_D2),
        .hps_0_hps_io_hps_io_usb1_inst_D3      (hps_0_hps_io_hps_io_usb1_inst_D3),
        .hps_0_hps_io_hps_io_usb1_inst_D4      (hps_0_hps_io_hps_io_usb1_inst_D4),
        .hps_0_hps_io_hps_io_usb1_inst_D5      (hps_0_hps_io_hps_io_usb1_inst_D5),
        .hps_0_hps_io_hps_io_usb1_inst_D6      (hps_0_hps_io_hps_io_usb1_inst_D6),
        .hps_0_hps_io_hps_io_usb1_inst_D7      (hps_0_hps_io_hps_io_usb1_inst_D7),
        .hps_0_hps_io_hps_io_usb1_inst_CLK     (hps_0_hps_io_hps_io_usb1_inst_CLK),
        .hps_0_hps_io_hps_io_usb1_inst_STP     (hps_0_hps_io_hps_io_usb1_inst_STP),
        .hps_0_hps_io_hps_io_usb1_inst_DIR     (hps_0_hps_io_hps_io_usb1_inst_DIR),
        .hps_0_hps_io_hps_io_usb1_inst_NXT     (hps_0_hps_io_hps_io_usb1_inst_NXT),
        .hps_0_hps_io_hps_io_spim0_inst_CLK    (hps_0_hps_io_hps_io_spim0_inst_CLK),
        .hps_0_hps_io_hps_io_spim0_inst_MOSI   (hps_0_hps_io_hps_io_spim0_inst_MOSI),
        .hps_0_hps_io_hps_io_spim0_inst_MISO   (hps_0_hps_io_hps_io_spim0_inst_MISO),
        .hps_0_hps_io_hps_io_spim0_inst_SS0    (hps_0_hps_io_hps_io_spim0_inst_SS0),
        .hps_0_hps_io_hps_io_spim1_inst_CLK    (hps_0_hps_io_hps_io_spim1_inst_CLK),
        .hps_0_hps_io_hps_io_spim1_inst_MOSI   (hps_0_hps_io_hps_io_spim1_inst_MOSI),
        .hps_0_hps_io_hps_io_spim1_inst_MISO   (hps_0_hps_io_hps_io_spim1_inst_MISO),
        .hps_0_hps_io_hps_io_spim1_inst_SS0    (hps_0_hps_io_hps_io_spim1_inst_SS0),
        .hps_0_hps_io_hps_io_uart0_inst_RX     (hps_0_hps_io_hps_io_uart0_inst_RX),
        .hps_0_hps_io_hps_io_uart0_inst_TX     (hps_0_hps_io_hps_io_uart0_inst_TX),
        .hps_0_hps_io_hps_io_i2c1_inst_SDA     (hps_0_hps_io_hps_io_i2c1_inst_SDA),
        .hps_0_hps_io_hps_io_i2c1_inst_SCL     (hps_0_hps_io_hps_io_i2c1_inst_SCL),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO00  (hps_0_hps_io_hps_io_gpio_inst_GPIO00),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO09  (hps_0_hps_io_hps_io_gpio_inst_GPIO09),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO35  (hps_0_hps_io_hps_io_gpio_inst_GPIO35),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO48  (hps_0_hps_io_hps_io_gpio_inst_GPIO48),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO53  (hps_0_hps_io_hps_io_gpio_inst_GPIO53),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO54  (hps_0_hps_io_hps_io_gpio_inst_GPIO54),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO55  (hps_0_hps_io_hps_io_gpio_inst_GPIO55),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO56  (hps_0_hps_io_hps_io_gpio_inst_GPIO56),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO61  (hps_0_hps_io_hps_io_gpio_inst_GPIO61),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO62  (hps_0_hps_io_hps_io_gpio_inst_GPIO62),
        .led_pio_external_connection_in_port   (fpga_led_internal),
        .led_pio_external_connection_out_port  (fpga_led_internal),
        .dipsw_pio_external_connection_export  (user_dipsw_fpga),
        .button_pio_external_connection_export (user_pb_fpga),
		  .hps_0_h2f_reset_reset_n               (hps_fpga_reset_n),		  
		  
		  

		  .alt_vip_itc_0_clocked_video_vid_clk         (clk_65),
        .alt_vip_itc_0_clocked_video_vid_data        ({vid_r,vid_g,vid_b}),
        .alt_vip_itc_0_clocked_video_underflow       (),
        .alt_vip_itc_0_clocked_video_vid_datavalid   (vid_datavalid),
        .alt_vip_itc_0_clocked_video_vid_v_sync      (vid_v_sync),
        .alt_vip_itc_0_clocked_video_vid_h_sync      (vid_h_sync),
        .alt_vip_itc_0_clocked_video_vid_f           (),
        .alt_vip_itc_0_clocked_video_vid_h           (),
        .alt_vip_itc_0_clocked_video_vid_v           (),
  


        
		  .clock_bridge_65_out_clk_clk              	  (clk_65)
        
  );
wire               clk_65;
wire [7:0]         vid_r,vid_g,vid_b;
wire               vid_v_sync ;
wire               vid_h_sync ;
wire               vid_datavalid;

assign fan_ctrl = 1'b1;

      
assign   vga_blank_n          =     1'b1;
assign   vga_sync_n           =     1'b0;	
assign   vga_clk              =     clk_65;
assign  {vga_b,vga_g,vga_r}   =     {vid_b,vid_g,vid_r};
assign   vga_vs               =     vid_v_sync;
assign   vga_hs               =     vid_h_sync;


endmodule
module c5sx_soc(









		output wire [14:0] memory_mem_a,
		output wire [2:0]  memory_mem_ba,
		output wire        memory_mem_ck,
		output wire        memory_mem_ck_n,
		output wire        memory_mem_cke,
		output wire        memory_mem_cs_n,
		output wire        memory_mem_ras_n,
		output wire        memory_mem_cas_n,
		output wire        memory_mem_we_n,
		output wire        memory_mem_reset_n,
		inout  wire [31:0] memory_mem_dq,
		inout  wire [3:0]  memory_mem_dqs,
		inout  wire [3:0]  memory_mem_dqs_n,
		output wire        memory_mem_odt,
		output wire [3:0]  memory_mem_dm,
		input  wire        memory_oct_rzqin,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TX_CLK,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TXD0,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TXD1,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TXD2,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TXD3,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RXD0,
		inout  wire        hps_0_hps_io_hps_io_emac1_inst_MDIO,
		output wire        hps_0_hps_io_hps_io_emac1_inst_MDC,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RX_CTL,
		output wire        hps_0_hps_io_hps_io_emac1_inst_TX_CTL,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RX_CLK,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RXD1,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RXD2,
		input  wire        hps_0_hps_io_hps_io_emac1_inst_RXD3,
		inout  wire        hps_0_hps_io_hps_io_qspi_inst_IO0,
		inout  wire        hps_0_hps_io_hps_io_qspi_inst_IO1,
		inout  wire        hps_0_hps_io_hps_io_qspi_inst_IO2,
		inout  wire        hps_0_hps_io_hps_io_qspi_inst_IO3,
		output wire        hps_0_hps_io_hps_io_qspi_inst_SS0,
		output wire        hps_0_hps_io_hps_io_qspi_inst_CLK,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_CMD,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_D0,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_D1,
		output wire        hps_0_hps_io_hps_io_sdio_inst_CLK,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_D2,
		inout  wire        hps_0_hps_io_hps_io_sdio_inst_D3,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D0,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D1,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D2,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D3,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D4,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D5,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D6,
		inout  wire        hps_0_hps_io_hps_io_usb1_inst_D7,
		input  wire        hps_0_hps_io_hps_io_usb1_inst_CLK,
		output wire        hps_0_hps_io_hps_io_usb1_inst_STP,
		input  wire        hps_0_hps_io_hps_io_usb1_inst_DIR,
		input  wire        hps_0_hps_io_hps_io_usb1_inst_NXT,
		output wire        hps_0_hps_io_hps_io_spim0_inst_CLK,
		output wire        hps_0_hps_io_hps_io_spim0_inst_MOSI,
		input  wire        hps_0_hps_io_hps_io_spim0_inst_MISO,
		output wire        hps_0_hps_io_hps_io_spim0_inst_SS0,
		output wire        hps_0_hps_io_hps_io_spim1_inst_CLK,
		output wire        hps_0_hps_io_hps_io_spim1_inst_MOSI,
		input  wire        hps_0_hps_io_hps_io_spim1_inst_MISO,
		output wire        hps_0_hps_io_hps_io_spim1_inst_SS0,
		input  wire        hps_0_hps_io_hps_io_uart0_inst_RX,
		output wire        hps_0_hps_io_hps_io_uart0_inst_TX,
		inout  wire        hps_0_hps_io_hps_io_i2c1_inst_SDA,
		inout  wire        hps_0_hps_io_hps_io_i2c1_inst_SCL,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO00,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO09,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO35,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO48,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO53,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO54,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO55,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO56,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO61,
		inout  wire        hps_0_hps_io_hps_io_gpio_inst_GPIO62,









	

   input          clk_100m_fpga,
   input          clk_50m_fpga,
	input          clk_top1,
   input          clk_bot1,
	input          fpga_resetn,


   output   wire  clk_i2c_sclk,
   inout    wire  clk_i2c_sdat,
             
`ifdef user_peripheral

 	input	 [3:0]   user_dipsw_fpga,
	output [3:0]   user_led_fpga,
	input	 [3:0]   user_pb_fpga,
  	input  	wire  irda_rxd,
  	output  	wire  fan_ctrl,
`endif
	
`ifdef ddr3

   output [14:0]  ddr3_fpga_a,
   output [2:0]   ddr3_fpga_ba,
	output         ddr3_fpga_casn,
	output         ddr3_fpga_cke,
	output         ddr3_fpga_clk_n,
	output         ddr3_fpga_clk_p,
   output         ddr3_fpga_csn,
   output [3:0]   ddr3_fpga_dm,
   inout  [31:0]  ddr3_fpga_dq,
   inout  [3:0]   ddr3_fpga_dqs_n,
   inout  [3:0]   ddr3_fpga_dqs_p,
   output         ddr3_fpga_odt,
   input          ddr3_fpga_rasn,
   input          ddr3_fpga_resetn,
   input          ddr3_fpga_wen,
	input          ddr3_fpga_rzq,


`endif

`ifdef temp_sense


   output   wire  temp_cs_n,
   output   wire  temp_sclk,
   output   wire  temp_mosi,
   input    wire  temp_miso,
`endif

`ifdef vga

   output 	wire  vga_clk,
   output 	wire  vga_hs,
   output 	wire  vga_vs,
   output   wire  [7:0] vga_r,
   output   wire  [7:0] vga_g,
   output   wire  [7:0] vga_b,
   output 	wire  vga_blank_n,
   output 	wire  vga_sync_n
`endif

`ifdef audio

   input 	wire  aud_adcdat,
   input 	wire  aud_adclrck,
   input 	wire  aud_bclk,
   output 	wire  aud_dacdat,
   inout 	wire  aud_daclrck,
	output   wire  aud_i2c_sclk,                                       
	inout    wire  aud_i2c_sdat,                                          
	output   wire  aud_mute,                                      
	output   wire  aud_xck,    
`endif






























   



);

    

  wire [1:0] fpga_debounced_buttons;
  wire [3:0] fpga_led_internal;
  wire       hps_fpga_reset_n;



	 

debounce debounce_inst (
  .clk                                  (clk_50m_fpga),
  .reset_n                              (hps_fpga_reset_n),  
  .data_in                              (user_pb_fpga),
  .data_out                             (fpga_debounced_buttons)
);
  defparam debounce_inst.WIDTH = 2;
  defparam debounce_inst.POLARITY = "LOW";
  defparam debounce_inst.TIMEOUT = 50000;
  defparam debounce_inst.TIMEOUT_WIDTH = 16;
  

pll_vga pll_vga_inst(
		.refclk(clk_50m_fpga),
		.rst(1'b0),
		.outclk_0(vga_clk_25m)
	);  
wire vga_clk_25m;	 
wire [7:0]  vga_color;
    soc_system u0 (
        .clk_clk                               (clk_bot1),
        .reset_reset_n                         (hps_fpga_reset_n),
        .memory_mem_a                          (memory_mem_a),
        .memory_mem_ba                         (memory_mem_ba),
        .memory_mem_ck                         (memory_mem_ck),
        .memory_mem_ck_n                       (memory_mem_ck_n),
        .memory_mem_cke                        (memory_mem_cke),
        .memory_mem_cs_n                       (memory_mem_cs_n),
        .memory_mem_ras_n                      (memory_mem_ras_n),
        .memory_mem_cas_n                      (memory_mem_cas_n),
        .memory_mem_we_n                       (memory_mem_we_n),
        .memory_mem_reset_n                    (memory_mem_reset_n),
        .memory_mem_dq                         (memory_mem_dq),
        .memory_mem_dqs                        (memory_mem_dqs),
        .memory_mem_dqs_n                      (memory_mem_dqs_n),
        .memory_mem_odt                        (memory_mem_odt),
        .memory_mem_dm                         (memory_mem_dm),
        .memory_oct_rzqin                      (memory_oct_rzqin),
        .hps_0_hps_io_hps_io_emac1_inst_TX_CLK (hps_0_hps_io_hps_io_emac1_inst_TX_CLK),
        .hps_0_hps_io_hps_io_emac1_inst_TXD0   (hps_0_hps_io_hps_io_emac1_inst_TXD0),
        .hps_0_hps_io_hps_io_emac1_inst_TXD1   (hps_0_hps_io_hps_io_emac1_inst_TXD1),
        .hps_0_hps_io_hps_io_emac1_inst_TXD2   (hps_0_hps_io_hps_io_emac1_inst_TXD2),
        .hps_0_hps_io_hps_io_emac1_inst_TXD3   (hps_0_hps_io_hps_io_emac1_inst_TXD3),
        .hps_0_hps_io_hps_io_emac1_inst_RXD0   (hps_0_hps_io_hps_io_emac1_inst_RXD0),
        .hps_0_hps_io_hps_io_emac1_inst_MDIO   (hps_0_hps_io_hps_io_emac1_inst_MDIO),
        .hps_0_hps_io_hps_io_emac1_inst_MDC    (hps_0_hps_io_hps_io_emac1_inst_MDC),
        .hps_0_hps_io_hps_io_emac1_inst_RX_CTL (hps_0_hps_io_hps_io_emac1_inst_RX_CTL),
        .hps_0_hps_io_hps_io_emac1_inst_TX_CTL (hps_0_hps_io_hps_io_emac1_inst_TX_CTL),
        .hps_0_hps_io_hps_io_emac1_inst_RX_CLK (hps_0_hps_io_hps_io_emac1_inst_RX_CLK),
        .hps_0_hps_io_hps_io_emac1_inst_RXD1   (hps_0_hps_io_hps_io_emac1_inst_RXD1),
        .hps_0_hps_io_hps_io_emac1_inst_RXD2   (hps_0_hps_io_hps_io_emac1_inst_RXD2),
        .hps_0_hps_io_hps_io_emac1_inst_RXD3   (hps_0_hps_io_hps_io_emac1_inst_RXD3),
        .hps_0_hps_io_hps_io_qspi_inst_IO0     (hps_0_hps_io_hps_io_qspi_inst_IO0),
        .hps_0_hps_io_hps_io_qspi_inst_IO1     (hps_0_hps_io_hps_io_qspi_inst_IO1),
        .hps_0_hps_io_hps_io_qspi_inst_IO2     (hps_0_hps_io_hps_io_qspi_inst_IO2),
        .hps_0_hps_io_hps_io_qspi_inst_IO3     (hps_0_hps_io_hps_io_qspi_inst_IO3),
        .hps_0_hps_io_hps_io_qspi_inst_SS0     (hps_0_hps_io_hps_io_qspi_inst_SS0),
        .hps_0_hps_io_hps_io_qspi_inst_CLK     (hps_0_hps_io_hps_io_qspi_inst_CLK),
        .hps_0_hps_io_hps_io_sdio_inst_CMD     (hps_0_hps_io_hps_io_sdio_inst_CMD),
        .hps_0_hps_io_hps_io_sdio_inst_D0      (hps_0_hps_io_hps_io_sdio_inst_D0),
        .hps_0_hps_io_hps_io_sdio_inst_D1      (hps_0_hps_io_hps_io_sdio_inst_D1),
        .hps_0_hps_io_hps_io_sdio_inst_CLK     (hps_0_hps_io_hps_io_sdio_inst_CLK),
        .hps_0_hps_io_hps_io_sdio_inst_D2      (hps_0_hps_io_hps_io_sdio_inst_D2),
        .hps_0_hps_io_hps_io_sdio_inst_D3      (hps_0_hps_io_hps_io_sdio_inst_D3),
        .hps_0_hps_io_hps_io_usb1_inst_D0      (hps_0_hps_io_hps_io_usb1_inst_D0),
        .hps_0_hps_io_hps_io_usb1_inst_D1      (hps_0_hps_io_hps_io_usb1_inst_D1),
        .hps_0_hps_io_hps_io_usb1_inst_D2      (hps_0_hps_io_hps_io_usb1_inst_D2),
        .hps_0_hps_io_hps_io_usb1_inst_D3      (hps_0_hps_io_hps_io_usb1_inst_D3),
        .hps_0_hps_io_hps_io_usb1_inst_D4      (hps_0_hps_io_hps_io_usb1_inst_D4),
        .hps_0_hps_io_hps_io_usb1_inst_D5      (hps_0_hps_io_hps_io_usb1_inst_D5),
        .hps_0_hps_io_hps_io_usb1_inst_D6      (hps_0_hps_io_hps_io_usb1_inst_D6),
        .hps_0_hps_io_hps_io_usb1_inst_D7      (hps_0_hps_io_hps_io_usb1_inst_D7),
        .hps_0_hps_io_hps_io_usb1_inst_CLK     (hps_0_hps_io_hps_io_usb1_inst_CLK),
        .hps_0_hps_io_hps_io_usb1_inst_STP     (hps_0_hps_io_hps_io_usb1_inst_STP),
        .hps_0_hps_io_hps_io_usb1_inst_DIR     (hps_0_hps_io_hps_io_usb1_inst_DIR),
        .hps_0_hps_io_hps_io_usb1_inst_NXT     (hps_0_hps_io_hps_io_usb1_inst_NXT),
        .hps_0_hps_io_hps_io_spim0_inst_CLK    (hps_0_hps_io_hps_io_spim0_inst_CLK),
        .hps_0_hps_io_hps_io_spim0_inst_MOSI   (hps_0_hps_io_hps_io_spim0_inst_MOSI),
        .hps_0_hps_io_hps_io_spim0_inst_MISO   (hps_0_hps_io_hps_io_spim0_inst_MISO),
        .hps_0_hps_io_hps_io_spim0_inst_SS0    (hps_0_hps_io_hps_io_spim0_inst_SS0),
        .hps_0_hps_io_hps_io_spim1_inst_CLK    (hps_0_hps_io_hps_io_spim1_inst_CLK),
        .hps_0_hps_io_hps_io_spim1_inst_MOSI   (hps_0_hps_io_hps_io_spim1_inst_MOSI),
        .hps_0_hps_io_hps_io_spim1_inst_MISO   (hps_0_hps_io_hps_io_spim1_inst_MISO),
        .hps_0_hps_io_hps_io_spim1_inst_SS0    (hps_0_hps_io_hps_io_spim1_inst_SS0),
        .hps_0_hps_io_hps_io_uart0_inst_RX     (hps_0_hps_io_hps_io_uart0_inst_RX),
        .hps_0_hps_io_hps_io_uart0_inst_TX     (hps_0_hps_io_hps_io_uart0_inst_TX),
        .hps_0_hps_io_hps_io_i2c1_inst_SDA     (hps_0_hps_io_hps_io_i2c1_inst_SDA),
        .hps_0_hps_io_hps_io_i2c1_inst_SCL     (hps_0_hps_io_hps_io_i2c1_inst_SCL),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO00  (hps_0_hps_io_hps_io_gpio_inst_GPIO00),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO09  (hps_0_hps_io_hps_io_gpio_inst_GPIO09),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO35  (hps_0_hps_io_hps_io_gpio_inst_GPIO35),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO48  (hps_0_hps_io_hps_io_gpio_inst_GPIO48),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO53  (hps_0_hps_io_hps_io_gpio_inst_GPIO53),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO54  (hps_0_hps_io_hps_io_gpio_inst_GPIO54),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO55  (hps_0_hps_io_hps_io_gpio_inst_GPIO55),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO56  (hps_0_hps_io_hps_io_gpio_inst_GPIO56),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO61  (hps_0_hps_io_hps_io_gpio_inst_GPIO61),
        .hps_0_hps_io_hps_io_gpio_inst_GPIO62  (hps_0_hps_io_hps_io_gpio_inst_GPIO62),
        .led_pio_external_connection_in_port   (fpga_led_internal),
        .led_pio_external_connection_out_port  (fpga_led_internal),
        .dipsw_pio_external_connection_export  (user_dipsw_fpga),
        .button_pio_external_connection_export (user_pb_fpga),
		  .hps_0_h2f_reset_reset_n               (hps_fpga_reset_n),		  
		  
		  

		  .alt_vip_itc_0_clocked_video_vid_clk         (clk_65),
        .alt_vip_itc_0_clocked_video_vid_data        ({vid_r,vid_g,vid_b}),
        .alt_vip_itc_0_clocked_video_underflow       (),
        .alt_vip_itc_0_clocked_video_vid_datavalid   (vid_datavalid),
        .alt_vip_itc_0_clocked_video_vid_v_sync      (vid_v_sync),
        .alt_vip_itc_0_clocked_video_vid_h_sync      (vid_h_sync),
        .alt_vip_itc_0_clocked_video_vid_f           (),
        .alt_vip_itc_0_clocked_video_vid_h           (),
        .alt_vip_itc_0_clocked_video_vid_v           (),
  


        
		  .clock_bridge_65_out_clk_clk              	  (clk_65)
        
  );
wire               clk_65;
wire [7:0]         vid_r,vid_g,vid_b;
wire               vid_v_sync ;
wire               vid_h_sync ;
wire               vid_datavalid;

assign fan_ctrl = 1'b1;

      
assign   vga_blank_n          =     1'b1;
assign   vga_sync_n           =     1'b0;	
assign   vga_clk              =     clk_65;
assign  {vga_b,vga_g,vga_r}   =     {vid_b,vid_g,vid_r};
assign   vga_vs               =     vid_v_sync;
assign   vga_hs               =     vid_h_sync;


endmodule