Line 1... |
Line 1... |
/* $Id: aeMB_edk32.v,v 1.12 2007-12-23 20:40:44 sybreon Exp $
|
/* $Id: aeMB_edk32.v,v 1.13 2007-12-25 22:15:09 sybreon Exp $
|
**
|
**
|
** AEMB EDK 3.2 Compatible Core
|
** AEMB EDK 3.2 Compatible Core
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap <shawn.tan@aeste.net>
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap <shawn.tan@aeste.net>
|
**
|
**
|
** This file is part of AEMB.
|
** This file is part of AEMB.
|
Line 84... |
Line 84... |
wire [31:0] rREGA; // From regf of aeMB_regf.v
|
wire [31:0] rREGA; // From regf of aeMB_regf.v
|
wire [31:0] rREGB; // From regf of aeMB_regf.v
|
wire [31:0] rREGB; // From regf of aeMB_regf.v
|
wire [31:0] rRESULT; // From xecu of aeMB_xecu.v
|
wire [31:0] rRESULT; // From xecu of aeMB_xecu.v
|
wire [4:0] rRW; // From ctrl of aeMB_ctrl.v
|
wire [4:0] rRW; // From ctrl of aeMB_ctrl.v
|
wire [31:0] rSIMM; // From ibuf of aeMB_ibuf.v
|
wire [31:0] rSIMM; // From ibuf of aeMB_ibuf.v
|
|
wire rSTALL; // From ibuf of aeMB_ibuf.v
|
wire [31:0] xIREG; // From ibuf of aeMB_ibuf.v
|
wire [31:0] xIREG; // From ibuf of aeMB_ibuf.v
|
// End of automatics
|
// End of automatics
|
|
|
input sys_clk_i;
|
input sys_clk_i;
|
input sys_rst_i;
|
input sys_rst_i;
|
|
|
wire grst = sys_rst_i;
|
wire grst = sys_rst_i;
|
wire gclk = sys_clk_i;
|
wire gclk = sys_clk_i;
|
wire gena = !((dwb_stb_o ^ dwb_ack_i) | (fsl_stb_o ^ fsl_ack_i) | !iwb_ack_i);
|
wire gena = !((dwb_stb_o ^ dwb_ack_i) | (fsl_stb_o ^ fsl_ack_i) | !iwb_ack_i) & !rSTALL;
|
|
|
// --- INSTANTIATIONS -------------------------------------
|
// --- INSTANTIATIONS -------------------------------------
|
|
|
aeMB_ibuf
|
aeMB_ibuf
|
ibuf (/*AUTOINST*/
|
ibuf (/*AUTOINST*/
|
Line 107... |
Line 108... |
.rRB (rRB[4:0]),
|
.rRB (rRB[4:0]),
|
.rALT (rALT[10:0]),
|
.rALT (rALT[10:0]),
|
.rOPC (rOPC[5:0]),
|
.rOPC (rOPC[5:0]),
|
.rSIMM (rSIMM[31:0]),
|
.rSIMM (rSIMM[31:0]),
|
.xIREG (xIREG[31:0]),
|
.xIREG (xIREG[31:0]),
|
|
.rSTALL (rSTALL),
|
.iwb_stb_o (iwb_stb_o),
|
.iwb_stb_o (iwb_stb_o),
|
// Inputs
|
// Inputs
|
.rBRA (rBRA),
|
.rBRA (rBRA),
|
.rMSR_IE (rMSR_IE),
|
.rMSR_IE (rMSR_IE),
|
.rMSR_BIP (rMSR_BIP),
|
.rMSR_BIP (rMSR_BIP),
|
Line 219... |
Line 221... |
.rRB (rRB[4:0]),
|
.rRB (rRB[4:0]),
|
.rMXALU (rMXALU[2:0]),
|
.rMXALU (rMXALU[2:0]),
|
.rBRA (rBRA),
|
.rBRA (rBRA),
|
.rDLY (rDLY),
|
.rDLY (rDLY),
|
.rALT (rALT[10:0]),
|
.rALT (rALT[10:0]),
|
|
.rSTALL (rSTALL),
|
.rSIMM (rSIMM[31:0]),
|
.rSIMM (rSIMM[31:0]),
|
.rIMM (rIMM[15:0]),
|
.rIMM (rIMM[15:0]),
|
.rOPC (rOPC[5:0]),
|
.rOPC (rOPC[5:0]),
|
.rRD (rRD[4:0]),
|
.rRD (rRD[4:0]),
|
.rDWBDI (rDWBDI[31:0]),
|
.rDWBDI (rDWBDI[31:0]),
|
Line 234... |
Line 237... |
|
|
endmodule // aeMB_edk32
|
endmodule // aeMB_edk32
|
|
|
/*
|
/*
|
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
|
Revision 1.12 2007/12/23 20:40:44 sybreon
|
|
Abstracted simulation kernel (aeMB_sim) to split simulation models from synthesis models.
|
|
|
Revision 1.11 2007/11/30 17:08:29 sybreon
|
Revision 1.11 2007/11/30 17:08:29 sybreon
|
Moved simulation kernel into code.
|
Moved simulation kernel into code.
|
|
|
Revision 1.10 2007/11/16 21:52:03 sybreon
|
Revision 1.10 2007/11/16 21:52:03 sybreon
|
Added fsl_tag_o to FSL bus (tag either address or data).
|
Added fsl_tag_o to FSL bus (tag either address or data).
|