// ps2_mouse.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 ps2_mouse (
		input  wire        clk,         //       clock_reset.clk
		input  wire        reset,       // clock_reset_reset.reset
		input  wire        address,     //    avalon_slave_0.address
		input  wire        chipselect,  //                  .chipselect
		input  wire [3:0]  byteenable,  //                  .byteenable
		input  wire        read,        //                  .read
		input  wire        write,       //                  .write
		input  wire [31:0] writedata,   //                  .writedata
		output wire [31:0] readdata,    //                  .readdata
		output wire        waitrequest, //                  .waitrequest
		inout  wire        PS2_CLK,     //       conduit_end.export
		inout  wire        PS2_DAT,     //                  .export
		output wire        irq          //  interrupt_sender.irq
	);

	Altera_UP_Avalon_PS2 ps2_mouse (
		.clk         (clk),         //       clock_reset.clk
		.reset       (reset),       // clock_reset_reset.reset
		.address     (address),     //    avalon_slave_0.address
		.chipselect  (chipselect),  //                  .chipselect
		.byteenable  (byteenable),  //                  .byteenable
		.read        (read),        //                  .read
		.write       (write),       //                  .write
		.writedata   (writedata),   //                  .writedata
		.readdata    (readdata),    //                  .readdata
		.waitrequest (waitrequest), //                  .waitrequest
		.PS2_CLK     (PS2_CLK),     //       conduit_end.export
		.PS2_DAT     (PS2_DAT),     //                  .export
		.irq         (irq)          //  interrupt_sender.irq
	);

endmodule
