OpenCores
URL https://opencores.org/ocsvn/aemb/aemb/trunk

Subversion Repositories aemb

[/] [aemb/] [trunk/] [rtl/] [verilog/] [aeMB2_exec.v] - Blame information for rev 134

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 134 sybreon
/* $Id: aeMB2_exec.v,v 1.4 2008-04-26 17:57:43 sybreon Exp $
2 118 sybreon
**
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 134 sybreon
// 382@130
31
 
32 118 sybreon
module aeMB2_exec (/*AUTOARG*/
33
   // Outputs
34
   sfr_mx, mul_mx, msr_ex, mem_ex, bsf_mx, bpc_ex, alu_mx, alu_ex,
35
   // Inputs
36
   rd_of, ra_of, opd_of, opc_of, opb_of, opa_of, imm_of, grst, gpha,
37
   gclk, dena
38
   );
39
   parameter AEMB_IWB = 32;
40
   parameter AEMB_DWB = 32;
41
   parameter AEMB_MUL = 1;
42
   parameter AEMB_BSF = 1;
43 132 sybreon
   parameter AEMB_HTX = 1;
44 118 sybreon
 
45
   /*AUTOOUTPUT*/
46
   // Beginning of automatic outputs (from unused autoinst outputs)
47
   output [31:0] alu_ex;                 // From intu0 of aeMB2_intu.v
48
   output [31:0] alu_mx;                 // From intu0 of aeMB2_intu.v
49
   output [31:2]        bpc_ex;                 // From intu0 of aeMB2_intu.v
50
   output [31:0] bsf_mx;                 // From bsft0 of aeMB2_bsft.v
51
   output [31:2]        mem_ex;                 // From intu0 of aeMB2_intu.v
52
   output [7:0]          msr_ex;                 // From intu0 of aeMB2_intu.v
53
   output [31:0] mul_mx;                 // From mult0 of aeMB2_mult.v
54
   output [31:0] sfr_mx;                 // From intu0 of aeMB2_intu.v
55
   // End of automatics
56
   /*AUTOINPUT*/
57
   // Beginning of automatic inputs (from unused autoinst inputs)
58
   input                dena;                   // To bsft0 of aeMB2_bsft.v, ...
59
   input                gclk;                   // To bsft0 of aeMB2_bsft.v, ...
60
   input                gpha;                   // To bsft0 of aeMB2_bsft.v, ...
61
   input                grst;                   // To bsft0 of aeMB2_bsft.v, ...
62
   input [15:0]          imm_of;                 // To bsft0 of aeMB2_bsft.v, ...
63
   input [31:0]          opa_of;                 // To bsft0 of aeMB2_bsft.v, ...
64
   input [31:0]          opb_of;                 // To bsft0 of aeMB2_bsft.v, ...
65
   input [5:0]           opc_of;                 // To bsft0 of aeMB2_bsft.v, ...
66
   input [31:0]          opd_of;                 // To intu0 of aeMB2_intu.v
67
   input [4:0]           ra_of;                  // To intu0 of aeMB2_intu.v
68
   input [4:0]           rd_of;                  // To intu0 of aeMB2_intu.v
69
   // End of automatics
70
   /*AUTOWIRE*/
71
 
72
   aeMB2_bsft
73
     #(/*AUTOINSTPARAM*/
74
       // Parameters
75
       .AEMB_BSF                        (AEMB_BSF))
76
   bsft0
77
     (/*AUTOINST*/
78
      // Outputs
79
      .bsf_mx                           (bsf_mx[31:0]),
80
      // Inputs
81
      .opa_of                           (opa_of[31:0]),
82
      .opb_of                           (opb_of[31:0]),
83
      .opc_of                           (opc_of[5:0]),
84
      .imm_of                           (imm_of[10:9]),
85
      .gclk                             (gclk),
86
      .grst                             (grst),
87
      .dena                             (dena),
88
      .gpha                             (gpha));
89
 
90
   aeMB2_mult
91
     #(/*AUTOINSTPARAM*/
92
       // Parameters
93
       .AEMB_MUL                        (AEMB_MUL))
94
   mult0
95
     (/*AUTOINST*/
96
      // Outputs
97
      .mul_mx                           (mul_mx[31:0]),
98
      // Inputs
99
      .opa_of                           (opa_of[31:0]),
100
      .opb_of                           (opb_of[31:0]),
101
      .opc_of                           (opc_of[5:0]),
102
      .gclk                             (gclk),
103
      .grst                             (grst),
104
      .dena                             (dena),
105
      .gpha                             (gpha));
106
 
107
   aeMB2_intu
108
     #(/*AUTOINSTPARAM*/
109
       // Parameters
110
       .AEMB_DWB                        (AEMB_DWB),
111 131 sybreon
       .AEMB_IWB                        (AEMB_IWB),
112
       .AEMB_HTX                        (AEMB_HTX))
113 118 sybreon
   intu0
114
     (/*AUTOINST*/
115
      // Outputs
116
      .mem_ex                           (mem_ex[31:2]),
117
      .bpc_ex                           (bpc_ex[31:2]),
118
      .alu_ex                           (alu_ex[31:0]),
119
      .alu_mx                           (alu_mx[31:0]),
120
      .msr_ex                           (msr_ex[7:0]),
121
      .sfr_mx                           (sfr_mx[31:0]),
122
      // Inputs
123
      .opc_of                           (opc_of[5:0]),
124
      .opa_of                           (opa_of[31:0]),
125
      .opb_of                           (opb_of[31:0]),
126
      .opd_of                           (opd_of[31:0]),
127
      .imm_of                           (imm_of[15:0]),
128
      .rd_of                            (rd_of[4:0]),
129
      .ra_of                            (ra_of[4:0]),
130
      .gclk                             (gclk),
131
      .grst                             (grst),
132
      .dena                             (dena),
133
      .gpha                             (gpha));
134
 
135
endmodule // aeMB2_exec
136
 
137 131 sybreon
/*
138
 $Log: not supported by cvs2svn $
139 134 sybreon
 Revision 1.3  2008/04/26 01:11:30  sybreon
140
 Fixed minor typos.
141
 
142 132 sybreon
 Revision 1.2  2008/04/26 01:09:06  sybreon
143
 Passes basic tests. Minor documentation changes to make it compatible with iverilog pre-processor.
144
 
145 131 sybreon
 Revision 1.1  2008/04/18 00:21:52  sybreon
146
 Initial import.
147
*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.