// isp1362.v

// This file was auto-generated as part of a SOPC Builder generate operation.
// If you edit it your changes will probably be lost.

module isp1362 (
		input  wire        clk,                      //              clock.clk
		input  wire        reset_n,                  //                   .reset_n
		output wire [1:0]  OTG_ADDR,                 //           export_0.export
		inout  wire [15:0] OTG_DATA,                 //                   .export
		output wire        OTG_CS_N,                 //                   .export
		output wire        OTG_RD_N,                 //                   .export
		output wire        OTG_WR_N,                 //                   .export
		output wire        OTG_RST_N,                //                   .export
		input  wire        OTG_INT0,                 //                   .export
		input  wire        OTG_INT1,                 //                   .export
		output wire        OTG_FSPEED,               //                   .export
		output wire        OTG_LSPEED,               //                   .export
		output wire        OTG_DACK0_N,              //                   .export
		output wire        OTG_DACK1_N,              //                   .export
		input  wire [1:0]  address,                  //     avalon_slave_0.address
		output wire [15:0] readdata,                 //                   .readdata
		input  wire [15:0] writedata,                //                   .writedata
		input  wire        chipselect_n,             //                   .chipselect_n
		input  wire        read_n,                   //                   .read_n
		input  wire        write_n,                  //                   .write_n
		input  wire [7:0]  writedata_avalon_slave_1, //     avalon_slave_1.writedata
		input  wire        write_n_avalon_slave_1,   //                   .write_n
		output wire        irq_n,                    //   interrupt_sender.irq_n
		output wire        irq_n_avalon_slave_1      // interrupt_sender_1.irq_n
	);

	isp1362_ctrl isp1362 (
		.clk                      (clk),                      //              clock.clk
		.reset_n                  (reset_n),                  //                   .reset_n
		.OTG_ADDR                 (OTG_ADDR),                 //           export_0.export
		.OTG_DATA                 (OTG_DATA),                 //                   .export
		.OTG_CS_N                 (OTG_CS_N),                 //                   .export
		.OTG_RD_N                 (OTG_RD_N),                 //                   .export
		.OTG_WR_N                 (OTG_WR_N),                 //                   .export
		.OTG_RST_N                (OTG_RST_N),                //                   .export
		.OTG_INT0                 (OTG_INT0),                 //                   .export
		.OTG_INT1                 (OTG_INT1),                 //                   .export
		.OTG_FSPEED               (OTG_FSPEED),               //                   .export
		.OTG_LSPEED               (OTG_LSPEED),               //                   .export
		.OTG_DACK0_N              (OTG_DACK0_N),              //                   .export
		.OTG_DACK1_N              (OTG_DACK1_N),              //                   .export
		.address                  (address),                  //     avalon_slave_0.address
		.readdata                 (readdata),                 //                   .readdata
		.writedata                (writedata),                //                   .writedata
		.chipselect_n             (chipselect_n),             //                   .chipselect_n
		.read_n                   (read_n),                   //                   .read_n
		.write_n                  (write_n),                  //                   .write_n
		.writedata_avalon_slave_1 (writedata_avalon_slave_1), //     avalon_slave_1.writedata
		.write_n_avalon_slave_1   (write_n_avalon_slave_1),   //                   .write_n
		.irq_n                    (irq_n),                    //   interrupt_sender.irq_n
		.irq_n_avalon_slave_1     (irq_n_avalon_slave_1)      // interrupt_sender_1.irq_n
	);

endmodule
