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

Subversion Repositories aemb

[/] [aemb/] [trunk/] [rtl/] [verilog/] [aeMB2_regs.v] - Blame information for rev 118

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

Line No. Rev Author Line
1 118 sybreon
/* $Id: aeMB2_regs.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
 * Register File Wrapper
24
 * @file aeMB2_regs.v
25
 
26
 * A collection of general purpose and special function registers.
27
 
28
 */
29
 
30
module aeMB2_regs (/*AUTOARG*/
31
   // Outputs
32
   opd_if, opb_if, opa_if,
33
   // Inputs
34
   xwb_mx, sfr_mx, sel_mx, rpc_mx, rpc_if, rd_of, rd_ex, ra_of,
35
   opc_of, opa_of, mux_of, mux_ex, mul_mx, imm_of, ich_dat, grst,
36
   gpha, gclk, dwb_mx, dena, bsf_mx, alu_mx, alu_c
37
   );
38
 
39
   parameter AEMB_HTX = 1;
40
 
41
   /*AUTOOUTPUT*/
42
   // Beginning of automatic outputs (from unused autoinst outputs)
43
   output [31:0] opa_if;                 // From gprf0 of aeMB2_gprf.v
44
   output [31:0] opb_if;                 // From gprf0 of aeMB2_gprf.v
45
   output [31:0] opd_if;                 // From gprf0 of aeMB2_gprf.v
46
   // End of automatics
47
   /*AUTOINPUT*/
48
   // Beginning of automatic inputs (from unused autoinst inputs)
49
   input                alu_c;                  // To sfrf0 of aeMB2_sfrf.v
50
   input [31:0]          alu_mx;                 // To gprf0 of aeMB2_gprf.v
51
   input [31:0]          bsf_mx;                 // To gprf0 of aeMB2_gprf.v
52
   input                dena;                   // To sfrf0 of aeMB2_sfrf.v, ...
53
   input [31:0]          dwb_mx;                 // To gprf0 of aeMB2_gprf.v
54
   input                gclk;                   // To sfrf0 of aeMB2_sfrf.v, ...
55
   input                gpha;                   // To sfrf0 of aeMB2_sfrf.v, ...
56
   input                grst;                   // To sfrf0 of aeMB2_sfrf.v, ...
57
   input [31:0]          ich_dat;                // To sfrf0 of aeMB2_sfrf.v, ...
58
   input [15:0]          imm_of;                 // To sfrf0 of aeMB2_sfrf.v
59
   input [31:0]          mul_mx;                 // To gprf0 of aeMB2_gprf.v
60
   input [2:0]           mux_ex;                 // To gprf0 of aeMB2_gprf.v
61
   input [2:0]           mux_of;                 // To gprf0 of aeMB2_gprf.v
62
   input [31:0]          opa_of;                 // To sfrf0 of aeMB2_sfrf.v
63
   input [5:0]           opc_of;                 // To sfrf0 of aeMB2_sfrf.v
64
   input [4:0]           ra_of;                  // To sfrf0 of aeMB2_sfrf.v
65
   input [4:0]           rd_ex;                  // To gprf0 of aeMB2_gprf.v
66
   input [4:0]           rd_of;                  // To sfrf0 of aeMB2_sfrf.v, ...
67
   input [31:2]         rpc_if;                 // To sfrf0 of aeMB2_sfrf.v
68
   input [31:2]         rpc_mx;                 // To gprf0 of aeMB2_gprf.v
69
   input [3:0]           sel_mx;                 // To gprf0 of aeMB2_gprf.v
70
   input [31:0]          sfr_mx;                 // To gprf0 of aeMB2_gprf.v
71
   input [31:0]          xwb_mx;                 // To gprf0 of aeMB2_gprf.v
72
   // End of automatics
73
   /*AUTOWIRE*/
74
 
75
   aeMB2_sfrf
76
     #(/*AUTOINSTPARAM*/
77
       // Parameters
78
       .AEMB_HTX                        (AEMB_HTX))
79
   sfrf0
80
     (/*AUTOINST*/
81
      // Inputs
82
      .rpc_if                           (rpc_if[31:2]),
83
      .alu_c                            (alu_c),
84
      .opc_of                           (opc_of[5:0]),
85
      .imm_of                           (imm_of[15:0]),
86
      .ra_of                            (ra_of[4:0]),
87
      .rd_of                            (rd_of[4:0]),
88
      .opa_of                           (opa_of[31:0]),
89
      .ich_dat                          (ich_dat[15:10]),
90
      .gclk                             (gclk),
91
      .grst                             (grst),
92
      .gpha                             (gpha),
93
      .dena                             (dena));
94
 
95
 
96
   aeMB2_gprf
97
     #(/*AUTOINSTPARAM*/
98
       // Parameters
99
       .AEMB_HTX                        (AEMB_HTX))
100
   gprf0
101
     (/*AUTOINST*/
102
      // Outputs
103
      .opa_if                           (opa_if[31:0]),
104
      .opb_if                           (opb_if[31:0]),
105
      .opd_if                           (opd_if[31:0]),
106
      // Inputs
107
      .mux_of                           (mux_of[2:0]),
108
      .mux_ex                           (mux_ex[2:0]),
109
      .ich_dat                          (ich_dat[31:0]),
110
      .rd_of                            (rd_of[4:0]),
111
      .rd_ex                            (rd_ex[4:0]),
112
      .sel_mx                           (sel_mx[3:0]),
113
      .rpc_mx                           (rpc_mx[31:2]),
114
      .xwb_mx                           (xwb_mx[31:0]),
115
      .dwb_mx                           (dwb_mx[31:0]),
116
      .alu_mx                           (alu_mx[31:0]),
117
      .sfr_mx                           (sfr_mx[31:0]),
118
      .mul_mx                           (mul_mx[31:0]),
119
      .bsf_mx                           (bsf_mx[31:0]),
120
      .gclk                             (gclk),
121
      .grst                             (grst),
122
      .dena                             (dena),
123
      .gpha                             (gpha));
124
 
125
endmodule // aeMB2_regs
126
 
127
// $Log: not supported by cvs2svn $

powered by: WebSVN 2.1.0

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