/* $Id: aeMB2_exec.v,v 1.4 2008-04-26 17:57:43 sybreon Exp $
|
/* $Id: aeMB2_exec.v,v 1.4 2008-04-26 17:57:43 sybreon Exp $
|
**
|
**
|
** AEMB2 EDK 6.2 COMPATIBLE CORE
|
** AEMB2 EDK 6.2 COMPATIBLE CORE
|
** Copyright (C) 2004-2008 Shawn Tan <shawn.tan@aeste.net>
|
** Copyright (C) 2004-2008 Shawn Tan <shawn.tan@aeste.net>
|
**
|
**
|
** This file is part of AEMB.
|
** This file is part of AEMB.
|
**
|
**
|
** AEMB is free software: you can redistribute it and/or modify it
|
** AEMB is free software: you can redistribute it and/or modify it
|
** under the terms of the GNU Lesser General Public License as
|
** under the terms of the GNU Lesser General Public License as
|
** published by the Free Software Foundation, either version 3 of the
|
** published by the Free Software Foundation, either version 3 of the
|
** License, or (at your option) any later version.
|
** License, or (at your option) any later version.
|
**
|
**
|
** AEMB is distributed in the hope that it will be useful, but WITHOUT
|
** AEMB is distributed in the hope that it will be useful, but WITHOUT
|
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
** or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
** or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
** Public License for more details.
|
** Public License for more details.
|
**
|
**
|
** You should have received a copy of the GNU Lesser General Public
|
** You should have received a copy of the GNU Lesser General Public
|
** License along with AEMB. If not, see <http:**www.gnu.org/licenses/>.
|
** License along with AEMB. If not, see <http:**www.gnu.org/licenses/>.
|
*/
|
*/
|
|
|
/**
|
/**
|
* Execution Units Wrapper
|
* Execution Units Wrapper
|
* @file aeMB2_exec.v
|
* @file aeMB2_exec.v
|
|
|
* Collection of all the execution units.
|
* Collection of all the execution units.
|
|
|
*/
|
*/
|
|
|
// 382@130
|
// 382@130
|
|
|
module aeMB2_exec (/*AUTOARG*/
|
module aeMB2_exec (/*AUTOARG*/
|
// Outputs
|
// Outputs
|
sfr_mx, mul_mx, msr_ex, mem_ex, bsf_mx, bpc_ex, alu_mx, alu_ex,
|
sfr_mx, mul_mx, msr_ex, mem_ex, bsf_mx, bpc_ex, alu_mx, alu_ex,
|
// Inputs
|
// Inputs
|
rd_of, ra_of, opd_of, opc_of, opb_of, opa_of, imm_of, grst, gpha,
|
rd_of, ra_of, opd_of, opc_of, opb_of, opa_of, imm_of, grst, gpha,
|
gclk, dena
|
gclk, dena
|
);
|
);
|
parameter AEMB_IWB = 32;
|
parameter AEMB_IWB = 32;
|
parameter AEMB_DWB = 32;
|
parameter AEMB_DWB = 32;
|
parameter AEMB_MUL = 1;
|
parameter AEMB_MUL = 1;
|
parameter AEMB_BSF = 1;
|
parameter AEMB_BSF = 1;
|
parameter AEMB_HTX = 1;
|
parameter AEMB_HTX = 1;
|
|
|
/*AUTOOUTPUT*/
|
/*AUTOOUTPUT*/
|
// Beginning of automatic outputs (from unused autoinst outputs)
|
// Beginning of automatic outputs (from unused autoinst outputs)
|
output [31:0] alu_ex; // From intu0 of aeMB2_intu.v
|
output [31:0] alu_ex; // From intu0 of aeMB2_intu.v
|
output [31:0] alu_mx; // From intu0 of aeMB2_intu.v
|
output [31:0] alu_mx; // From intu0 of aeMB2_intu.v
|
output [31:2] bpc_ex; // From intu0 of aeMB2_intu.v
|
output [31:2] bpc_ex; // From intu0 of aeMB2_intu.v
|
output [31:0] bsf_mx; // From bsft0 of aeMB2_bsft.v
|
output [31:0] bsf_mx; // From bsft0 of aeMB2_bsft.v
|
output [31:2] mem_ex; // From intu0 of aeMB2_intu.v
|
output [31:2] mem_ex; // From intu0 of aeMB2_intu.v
|
output [7:0] msr_ex; // From intu0 of aeMB2_intu.v
|
output [7:0] msr_ex; // From intu0 of aeMB2_intu.v
|
output [31:0] mul_mx; // From mult0 of aeMB2_mult.v
|
output [31:0] mul_mx; // From mult0 of aeMB2_mult.v
|
output [31:0] sfr_mx; // From intu0 of aeMB2_intu.v
|
output [31:0] sfr_mx; // From intu0 of aeMB2_intu.v
|
// End of automatics
|
// End of automatics
|
/*AUTOINPUT*/
|
/*AUTOINPUT*/
|
// Beginning of automatic inputs (from unused autoinst inputs)
|
// Beginning of automatic inputs (from unused autoinst inputs)
|
input dena; // To bsft0 of aeMB2_bsft.v, ...
|
input dena; // To bsft0 of aeMB2_bsft.v, ...
|
input gclk; // To bsft0 of aeMB2_bsft.v, ...
|
input gclk; // To bsft0 of aeMB2_bsft.v, ...
|
input gpha; // To bsft0 of aeMB2_bsft.v, ...
|
input gpha; // To bsft0 of aeMB2_bsft.v, ...
|
input grst; // To bsft0 of aeMB2_bsft.v, ...
|
input grst; // To bsft0 of aeMB2_bsft.v, ...
|
input [15:0] imm_of; // To bsft0 of aeMB2_bsft.v, ...
|
input [15:0] imm_of; // To bsft0 of aeMB2_bsft.v, ...
|
input [31:0] opa_of; // To bsft0 of aeMB2_bsft.v, ...
|
input [31:0] opa_of; // To bsft0 of aeMB2_bsft.v, ...
|
input [31:0] opb_of; // To bsft0 of aeMB2_bsft.v, ...
|
input [31:0] opb_of; // To bsft0 of aeMB2_bsft.v, ...
|
input [5:0] opc_of; // To bsft0 of aeMB2_bsft.v, ...
|
input [5:0] opc_of; // To bsft0 of aeMB2_bsft.v, ...
|
input [31:0] opd_of; // To intu0 of aeMB2_intu.v
|
input [31:0] opd_of; // To intu0 of aeMB2_intu.v
|
input [4:0] ra_of; // To intu0 of aeMB2_intu.v
|
input [4:0] ra_of; // To intu0 of aeMB2_intu.v
|
input [4:0] rd_of; // To intu0 of aeMB2_intu.v
|
input [4:0] rd_of; // To intu0 of aeMB2_intu.v
|
// End of automatics
|
// End of automatics
|
/*AUTOWIRE*/
|
/*AUTOWIRE*/
|
|
|
aeMB2_bsft
|
aeMB2_bsft
|
#(/*AUTOINSTPARAM*/
|
#(/*AUTOINSTPARAM*/
|
// Parameters
|
// Parameters
|
.AEMB_BSF (AEMB_BSF))
|
.AEMB_BSF (AEMB_BSF))
|
bsft0
|
bsft0
|
(/*AUTOINST*/
|
(/*AUTOINST*/
|
// Outputs
|
// Outputs
|
.bsf_mx (bsf_mx[31:0]),
|
.bsf_mx (bsf_mx[31:0]),
|
// Inputs
|
// Inputs
|
.opa_of (opa_of[31:0]),
|
.opa_of (opa_of[31:0]),
|
.opb_of (opb_of[31:0]),
|
.opb_of (opb_of[31:0]),
|
.opc_of (opc_of[5:0]),
|
.opc_of (opc_of[5:0]),
|
.imm_of (imm_of[10:9]),
|
.imm_of (imm_of[10:9]),
|
.gclk (gclk),
|
.gclk (gclk),
|
.grst (grst),
|
.grst (grst),
|
.dena (dena),
|
.dena (dena),
|
.gpha (gpha));
|
.gpha (gpha));
|
|
|
aeMB2_mult
|
aeMB2_mult
|
#(/*AUTOINSTPARAM*/
|
#(/*AUTOINSTPARAM*/
|
// Parameters
|
// Parameters
|
.AEMB_MUL (AEMB_MUL))
|
.AEMB_MUL (AEMB_MUL))
|
mult0
|
mult0
|
(/*AUTOINST*/
|
(/*AUTOINST*/
|
// Outputs
|
// Outputs
|
.mul_mx (mul_mx[31:0]),
|
.mul_mx (mul_mx[31:0]),
|
// Inputs
|
// Inputs
|
.opa_of (opa_of[31:0]),
|
.opa_of (opa_of[31:0]),
|
.opb_of (opb_of[31:0]),
|
.opb_of (opb_of[31:0]),
|
.opc_of (opc_of[5:0]),
|
.opc_of (opc_of[5:0]),
|
.gclk (gclk),
|
.gclk (gclk),
|
.grst (grst),
|
.grst (grst),
|
.dena (dena),
|
.dena (dena),
|
.gpha (gpha));
|
.gpha (gpha));
|
|
|
aeMB2_intu
|
aeMB2_intu
|
#(/*AUTOINSTPARAM*/
|
#(/*AUTOINSTPARAM*/
|
// Parameters
|
// Parameters
|
.AEMB_DWB (AEMB_DWB),
|
.AEMB_DWB (AEMB_DWB),
|
.AEMB_IWB (AEMB_IWB),
|
.AEMB_IWB (AEMB_IWB),
|
.AEMB_HTX (AEMB_HTX))
|
.AEMB_HTX (AEMB_HTX))
|
intu0
|
intu0
|
(/*AUTOINST*/
|
(/*AUTOINST*/
|
// Outputs
|
// Outputs
|
.mem_ex (mem_ex[31:2]),
|
.mem_ex (mem_ex[31:2]),
|
.bpc_ex (bpc_ex[31:2]),
|
.bpc_ex (bpc_ex[31:2]),
|
.alu_ex (alu_ex[31:0]),
|
.alu_ex (alu_ex[31:0]),
|
.alu_mx (alu_mx[31:0]),
|
.alu_mx (alu_mx[31:0]),
|
.msr_ex (msr_ex[7:0]),
|
.msr_ex (msr_ex[7:0]),
|
.sfr_mx (sfr_mx[31:0]),
|
.sfr_mx (sfr_mx[31:0]),
|
// Inputs
|
// Inputs
|
.opc_of (opc_of[5:0]),
|
.opc_of (opc_of[5:0]),
|
.opa_of (opa_of[31:0]),
|
.opa_of (opa_of[31:0]),
|
.opb_of (opb_of[31:0]),
|
.opb_of (opb_of[31:0]),
|
.opd_of (opd_of[31:0]),
|
.opd_of (opd_of[31:0]),
|
.imm_of (imm_of[15:0]),
|
.imm_of (imm_of[15:0]),
|
.rd_of (rd_of[4:0]),
|
.rd_of (rd_of[4:0]),
|
.ra_of (ra_of[4:0]),
|
.ra_of (ra_of[4:0]),
|
.gclk (gclk),
|
.gclk (gclk),
|
.grst (grst),
|
.grst (grst),
|
.dena (dena),
|
.dena (dena),
|
.gpha (gpha));
|
.gpha (gpha));
|
|
|
endmodule // aeMB2_exec
|
endmodule // aeMB2_exec
|
|
|
/*
|
/*
|
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
Revision 1.3 2008/04/26 01:11:30 sybreon
|
Revision 1.3 2008/04/26 01:11:30 sybreon
|
Fixed minor typos.
|
Fixed minor typos.
|
|
|
Revision 1.2 2008/04/26 01:09:06 sybreon
|
Revision 1.2 2008/04/26 01:09:06 sybreon
|
Passes basic tests. Minor documentation changes to make it compatible with iverilog pre-processor.
|
Passes basic tests. Minor documentation changes to make it compatible with iverilog pre-processor.
|
|
|
Revision 1.1 2008/04/18 00:21:52 sybreon
|
Revision 1.1 2008/04/18 00:21:52 sybreon
|
Initial import.
|
Initial import.
|
|
|