Line 39... |
Line 39... |
//// Public License along with this source; if not, download it ////
|
//// Public License along with this source; if not, download it ////
|
//// from <http://www.opencores.org/lgpl.shtml> ////
|
//// from <http://www.opencores.org/lgpl.shtml> ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// $Id: sxp.v,v 1.3 2001-11-06 20:15:28 samg Exp $
|
// $Id: sxp.v,v 1.4 2001-11-09 00:45:59 samg Exp $
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.3 2001/11/06 20:15:28 samg
|
|
// Used common header
|
|
//
|
//
|
//
|
|
|
// Remove comments to force a syncronous FF bassed reg file.
|
// Remove comments to force a syncronous FF bassed reg file.
|
// `define SYNC_REG
|
// `define SYNC_REG
|
|
|
Line 356... |
Line 359... |
dest_en_1 = 1'b 0;
|
dest_en_1 = 1'b 0;
|
end
|
end
|
end
|
end
|
|
|
`ifdef SYNC_REG
|
`ifdef SYNC_REG
|
sync_regf #(4,16) i_regf (
|
sync_regf #(4,32) i_regf (
|
.clk(clk), // system clock
|
.clk(clk), // system clock
|
.reset_b(reset_b), // power on reset
|
.reset_b(reset_b), // power on reset
|
.halt(halt), // system wide halt
|
.halt(halt), // system wide halt
|
.addra(addra_1), // Port A read address
|
.addra(addra_1), // Port A read address
|
.a_en(a_en), // Port A read enable
|
.a_en(a_en), // Port A read enable
|
Line 371... |
Line 374... |
.wec(wec), // Port C write enable
|
.wec(wec), // Port C write enable
|
|
|
.qra(qra), // Port A registered output data
|
.qra(qra), // Port A registered output data
|
.qrb(qrb)); // Port B registered output data
|
.qrb(qrb)); // Port B registered output data
|
`else
|
`else
|
mem_regf #(4,16) i_regf (
|
mem_regf #(4,32) i_regf (
|
.clk(clk), // system clock
|
.clk(clk), // system clock
|
.reset_b(reset_b), // power on reset
|
.reset_b(reset_b), // power on reset
|
.halt(halt), // system wide halt
|
.halt(halt), // system wide halt
|
.addra(addra_1), // Port A read address
|
.addra(addra_1), // Port A read address
|
.a_en(a_en), // Port A read enable
|
.a_en(a_en), // Port A read enable
|
Line 387... |
Line 390... |
|
|
.qra(qra), // Port A registered output data
|
.qra(qra), // Port A registered output data
|
.qrb(qrb)); // Port B registered output data
|
.qrb(qrb)); // Port B registered output data
|
`endif
|
`endif
|
|
|
regf_status #(4,16) i_regf_status(
|
regf_status #(4) i_regf_status(
|
.clk(clk), // system clock
|
.clk(clk), // system clock
|
.reset_b(reset_b), // power on reset
|
.reset_b(reset_b), // power on reset
|
.stall(stall_1_2), // stall in pipeline 1 and 2
|
.stall(stall_1_2), // stall in pipeline 1 and 2
|
.halt(halt), // system wide stall signal
|
.halt(halt), // system wide stall signal
|
.dest_en(dest_en_1), // instr has dest register (en scoreboarding)
|
.dest_en(dest_en_1), // instr has dest register (en scoreboarding)
|