Line 1... |
Line 1... |
/* $Id: aeMB2_regs.v,v 1.1 2008-04-18 00:21:52 sybreon Exp $
|
/* $Id: aeMB2_regs.v,v 1.2 2008-04-21 12:11:38 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.
|
Line 29... |
Line 29... |
|
|
module aeMB2_regs (/*AUTOARG*/
|
module aeMB2_regs (/*AUTOARG*/
|
// Outputs
|
// Outputs
|
opd_if, opb_if, opa_if,
|
opd_if, opb_if, opa_if,
|
// Inputs
|
// Inputs
|
xwb_mx, sfr_mx, sel_mx, rpc_mx, rpc_if, rd_of, rd_ex, ra_of,
|
xwb_mx, sfr_mx, sel_mx, rpc_mx, rd_of, rd_ex, mux_of, mux_ex,
|
opc_of, opa_of, mux_of, mux_ex, mul_mx, imm_of, ich_dat, grst,
|
mul_mx, ich_dat, grst, gpha, gclk, dwb_mx, dena, bsf_mx, alu_mx
|
gpha, gclk, dwb_mx, dena, bsf_mx, alu_mx, alu_c
|
|
);
|
);
|
|
|
parameter AEMB_HTX = 1;
|
parameter AEMB_HTX = 1;
|
|
|
/*AUTOOUTPUT*/
|
/*AUTOOUTPUT*/
|
Line 44... |
Line 43... |
output [31:0] opb_if; // From gprf0 of aeMB2_gprf.v
|
output [31:0] opb_if; // From gprf0 of aeMB2_gprf.v
|
output [31:0] opd_if; // From gprf0 of aeMB2_gprf.v
|
output [31:0] opd_if; // From gprf0 of aeMB2_gprf.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 alu_c; // To sfrf0 of aeMB2_sfrf.v
|
|
input [31:0] alu_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] alu_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] bsf_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] bsf_mx; // To gprf0 of aeMB2_gprf.v
|
input dena; // To sfrf0 of aeMB2_sfrf.v, ...
|
input dena; // To gprf0 of aeMB2_gprf.v
|
input [31:0] dwb_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] dwb_mx; // To gprf0 of aeMB2_gprf.v
|
input gclk; // To sfrf0 of aeMB2_sfrf.v, ...
|
input gclk; // To gprf0 of aeMB2_gprf.v
|
input gpha; // To sfrf0 of aeMB2_sfrf.v, ...
|
input gpha; // To gprf0 of aeMB2_gprf.v
|
input grst; // To sfrf0 of aeMB2_sfrf.v, ...
|
input grst; // To gprf0 of aeMB2_gprf.v
|
input [31:0] ich_dat; // To sfrf0 of aeMB2_sfrf.v, ...
|
input [31:0] ich_dat; // To gprf0 of aeMB2_gprf.v
|
input [15:0] imm_of; // To sfrf0 of aeMB2_sfrf.v
|
|
input [31:0] mul_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] mul_mx; // To gprf0 of aeMB2_gprf.v
|
input [2:0] mux_ex; // To gprf0 of aeMB2_gprf.v
|
input [2:0] mux_ex; // To gprf0 of aeMB2_gprf.v
|
input [2:0] mux_of; // To gprf0 of aeMB2_gprf.v
|
input [2:0] mux_of; // To gprf0 of aeMB2_gprf.v
|
input [31:0] opa_of; // To sfrf0 of aeMB2_sfrf.v
|
|
input [5:0] opc_of; // To sfrf0 of aeMB2_sfrf.v
|
|
input [4:0] ra_of; // To sfrf0 of aeMB2_sfrf.v
|
|
input [4:0] rd_ex; // To gprf0 of aeMB2_gprf.v
|
input [4:0] rd_ex; // To gprf0 of aeMB2_gprf.v
|
input [4:0] rd_of; // To sfrf0 of aeMB2_sfrf.v, ...
|
input [4:0] rd_of; // To gprf0 of aeMB2_gprf.v
|
input [31:2] rpc_if; // To sfrf0 of aeMB2_sfrf.v
|
|
input [31:2] rpc_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:2] rpc_mx; // To gprf0 of aeMB2_gprf.v
|
input [3:0] sel_mx; // To gprf0 of aeMB2_gprf.v
|
input [3:0] sel_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] sfr_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] sfr_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] xwb_mx; // To gprf0 of aeMB2_gprf.v
|
input [31:0] xwb_mx; // To gprf0 of aeMB2_gprf.v
|
// End of automatics
|
// End of automatics
|
/*AUTOWIRE*/
|
/*AUTOWIRE*/
|
|
|
aeMB2_sfrf
|
// TODO: Add special function registers
|
#(/*AUTOINSTPARAM*/
|
|
// Parameters
|
|
.AEMB_HTX (AEMB_HTX))
|
|
sfrf0
|
|
(/*AUTOINST*/
|
|
// Inputs
|
|
.rpc_if (rpc_if[31:2]),
|
|
.alu_c (alu_c),
|
|
.opc_of (opc_of[5:0]),
|
|
.imm_of (imm_of[15:0]),
|
|
.ra_of (ra_of[4:0]),
|
|
.rd_of (rd_of[4:0]),
|
|
.opa_of (opa_of[31:0]),
|
|
.ich_dat (ich_dat[15:10]),
|
|
.gclk (gclk),
|
|
.grst (grst),
|
|
.gpha (gpha),
|
|
.dena (dena));
|
|
|
|
|
|
aeMB2_gprf
|
aeMB2_gprf
|
#(/*AUTOINSTPARAM*/
|
#(/*AUTOINSTPARAM*/
|
// Parameters
|
// Parameters
|
.AEMB_HTX (AEMB_HTX))
|
.AEMB_HTX (AEMB_HTX))
|
Line 123... |
Line 97... |
.gpha (gpha));
|
.gpha (gpha));
|
|
|
endmodule // aeMB2_regs
|
endmodule // aeMB2_regs
|
|
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
No newline at end of file
|
No newline at end of file
|
|
// Revision 1.1 2008/04/18 00:21:52 sybreon
|
|
// Initial import.
|
|
//
|
No newline at end of file
|
No newline at end of file
|