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

Subversion Repositories aemb

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

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

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

powered by: WebSVN 2.1.0

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