| 1 |
118 |
sybreon |
/* $Id: aeMB2_exec.v,v 1.1 2008-04-18 00:21:52 sybreon Exp $
|
| 2 |
|
|
**
|
| 3 |
|
|
** AEMB2 EDK 6.2 COMPATIBLE CORE
|
| 4 |
|
|
** Copyright (C) 2004-2008 Shawn Tan <shawn.tan@aeste.net>
|
| 5 |
|
|
**
|
| 6 |
|
|
** This file is part of AEMB.
|
| 7 |
|
|
**
|
| 8 |
|
|
** AEMB is free software: you can redistribute it and/or modify it
|
| 9 |
|
|
** under the terms of the GNU Lesser General Public License as
|
| 10 |
|
|
** published by the Free Software Foundation, either version 3 of the
|
| 11 |
|
|
** License, or (at your option) any later version.
|
| 12 |
|
|
**
|
| 13 |
|
|
** AEMB is distributed in the hope that it will be useful, but WITHOUT
|
| 14 |
|
|
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
| 15 |
|
|
** or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
| 16 |
|
|
** Public License for more details.
|
| 17 |
|
|
**
|
| 18 |
|
|
** You should have received a copy of the GNU Lesser General Public
|
| 19 |
|
|
** License along with AEMB. If not, see <http:**www.gnu.org/licenses/>.
|
| 20 |
|
|
*/
|
| 21 |
|
|
|
| 22 |
|
|
/**
|
| 23 |
|
|
* Execution Units Wrapper
|
| 24 |
|
|
* @file aeMB2_exec.v
|
| 25 |
|
|
|
| 26 |
|
|
* Collection of all the execution units.
|
| 27 |
|
|
|
| 28 |
|
|
*/
|
| 29 |
|
|
|
| 30 |
|
|
module aeMB2_exec (/*AUTOARG*/
|
| 31 |
|
|
// Outputs
|
| 32 |
|
|
sfr_mx, mul_mx, msr_ex, mem_ex, bsf_mx, bpc_ex, alu_mx, alu_ex,
|
| 33 |
|
|
// Inputs
|
| 34 |
|
|
rd_of, ra_of, opd_of, opc_of, opb_of, opa_of, imm_of, grst, gpha,
|
| 35 |
|
|
gclk, dena
|
| 36 |
|
|
);
|
| 37 |
|
|
parameter AEMB_IWB = 32;
|
| 38 |
|
|
parameter AEMB_DWB = 32;
|
| 39 |
|
|
parameter AEMB_MUL = 1;
|
| 40 |
|
|
parameter AEMB_BSF = 1;
|
| 41 |
|
|
|
| 42 |
|
|
/*AUTOOUTPUT*/
|
| 43 |
|
|
// Beginning of automatic outputs (from unused autoinst outputs)
|
| 44 |
|
|
output [31:0] alu_ex; // From intu0 of aeMB2_intu.v
|
| 45 |
|
|
output [31:0] alu_mx; // From intu0 of aeMB2_intu.v
|
| 46 |
|
|
output [31:2] bpc_ex; // From intu0 of aeMB2_intu.v
|
| 47 |
|
|
output [31:0] bsf_mx; // From bsft0 of aeMB2_bsft.v
|
| 48 |
|
|
output [31:2] mem_ex; // From intu0 of aeMB2_intu.v
|
| 49 |
|
|
output [7:0] msr_ex; // From intu0 of aeMB2_intu.v
|
| 50 |
|
|
output [31:0] mul_mx; // From mult0 of aeMB2_mult.v
|
| 51 |
|
|
output [31:0] sfr_mx; // From intu0 of aeMB2_intu.v
|
| 52 |
|
|
// End of automatics
|
| 53 |
|
|
/*AUTOINPUT*/
|
| 54 |
|
|
// Beginning of automatic inputs (from unused autoinst inputs)
|
| 55 |
|
|
input dena; // To bsft0 of aeMB2_bsft.v, ...
|
| 56 |
|
|
input gclk; // To bsft0 of aeMB2_bsft.v, ...
|
| 57 |
|
|
input gpha; // To bsft0 of aeMB2_bsft.v, ...
|
| 58 |
|
|
input grst; // To bsft0 of aeMB2_bsft.v, ...
|
| 59 |
|
|
input [15:0] imm_of; // To bsft0 of aeMB2_bsft.v, ...
|
| 60 |
|
|
input [31:0] opa_of; // To bsft0 of aeMB2_bsft.v, ...
|
| 61 |
|
|
input [31:0] opb_of; // To bsft0 of aeMB2_bsft.v, ...
|
| 62 |
|
|
input [5:0] opc_of; // To bsft0 of aeMB2_bsft.v, ...
|
| 63 |
|
|
input [31:0] opd_of; // To intu0 of aeMB2_intu.v
|
| 64 |
|
|
input [4:0] ra_of; // To intu0 of aeMB2_intu.v
|
| 65 |
|
|
input [4:0] rd_of; // To intu0 of aeMB2_intu.v
|
| 66 |
|
|
// End of automatics
|
| 67 |
|
|
/*AUTOWIRE*/
|
| 68 |
|
|
|
| 69 |
|
|
aeMB2_bsft
|
| 70 |
|
|
#(/*AUTOINSTPARAM*/
|
| 71 |
|
|
// Parameters
|
| 72 |
|
|
.AEMB_BSF (AEMB_BSF))
|
| 73 |
|
|
bsft0
|
| 74 |
|
|
(/*AUTOINST*/
|
| 75 |
|
|
// Outputs
|
| 76 |
|
|
.bsf_mx (bsf_mx[31:0]),
|
| 77 |
|
|
// Inputs
|
| 78 |
|
|
.opa_of (opa_of[31:0]),
|
| 79 |
|
|
.opb_of (opb_of[31:0]),
|
| 80 |
|
|
.opc_of (opc_of[5:0]),
|
| 81 |
|
|
.imm_of (imm_of[10:9]),
|
| 82 |
|
|
.gclk (gclk),
|
| 83 |
|
|
.grst (grst),
|
| 84 |
|
|
.dena (dena),
|
| 85 |
|
|
.gpha (gpha));
|
| 86 |
|
|
|
| 87 |
|
|
aeMB2_mult
|
| 88 |
|
|
#(/*AUTOINSTPARAM*/
|
| 89 |
|
|
// Parameters
|
| 90 |
|
|
.AEMB_MUL (AEMB_MUL))
|
| 91 |
|
|
mult0
|
| 92 |
|
|
(/*AUTOINST*/
|
| 93 |
|
|
// Outputs
|
| 94 |
|
|
.mul_mx (mul_mx[31:0]),
|
| 95 |
|
|
// Inputs
|
| 96 |
|
|
.opa_of (opa_of[31:0]),
|
| 97 |
|
|
.opb_of (opb_of[31:0]),
|
| 98 |
|
|
.opc_of (opc_of[5:0]),
|
| 99 |
|
|
.gclk (gclk),
|
| 100 |
|
|
.grst (grst),
|
| 101 |
|
|
.dena (dena),
|
| 102 |
|
|
.gpha (gpha));
|
| 103 |
|
|
|
| 104 |
|
|
aeMB2_intu
|
| 105 |
|
|
#(/*AUTOINSTPARAM*/
|
| 106 |
|
|
// Parameters
|
| 107 |
|
|
.AEMB_DWB (AEMB_DWB),
|
| 108 |
|
|
.AEMB_IWB (AEMB_IWB))
|
| 109 |
|
|
intu0
|
| 110 |
|
|
(/*AUTOINST*/
|
| 111 |
|
|
// Outputs
|
| 112 |
|
|
.mem_ex (mem_ex[31:2]),
|
| 113 |
|
|
.bpc_ex (bpc_ex[31:2]),
|
| 114 |
|
|
.alu_ex (alu_ex[31:0]),
|
| 115 |
|
|
.alu_mx (alu_mx[31:0]),
|
| 116 |
|
|
.msr_ex (msr_ex[7:0]),
|
| 117 |
|
|
.sfr_mx (sfr_mx[31:0]),
|
| 118 |
|
|
// Inputs
|
| 119 |
|
|
.opc_of (opc_of[5:0]),
|
| 120 |
|
|
.opa_of (opa_of[31:0]),
|
| 121 |
|
|
.opb_of (opb_of[31:0]),
|
| 122 |
|
|
.opd_of (opd_of[31:0]),
|
| 123 |
|
|
.imm_of (imm_of[15:0]),
|
| 124 |
|
|
.rd_of (rd_of[4:0]),
|
| 125 |
|
|
.ra_of (ra_of[4:0]),
|
| 126 |
|
|
.gclk (gclk),
|
| 127 |
|
|
.grst (grst),
|
| 128 |
|
|
.dena (dena),
|
| 129 |
|
|
.gpha (gpha));
|
| 130 |
|
|
|
| 131 |
|
|
endmodule // aeMB2_exec
|
| 132 |
|
|
|
| 133 |
|
|
// $Log: not supported by cvs2svn $
|