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

Subversion Repositories aemb

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

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

Line No. Rev Author Line
1 125 sybreon
/* $Id: aeMB2_regs.v,v 1.2 2008-04-21 12:11:38 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
 * 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 125 sybreon
   xwb_mx, sfr_mx, sel_mx, rpc_mx, rd_of, rd_ex, mux_of, mux_ex,
35
   mul_mx, ich_dat, grst, gpha, gclk, dwb_mx, dena, bsf_mx, alu_mx
36 118 sybreon
   );
37
 
38
   parameter AEMB_HTX = 1;
39
 
40
   /*AUTOOUTPUT*/
41
   // Beginning of automatic outputs (from unused autoinst outputs)
42
   output [31:0] opa_if;                 // From gprf0 of aeMB2_gprf.v
43
   output [31:0] opb_if;                 // From gprf0 of aeMB2_gprf.v
44
   output [31:0] opd_if;                 // From gprf0 of aeMB2_gprf.v
45
   // End of automatics
46
   /*AUTOINPUT*/
47
   // Beginning of automatic inputs (from unused autoinst inputs)
48
   input [31:0]          alu_mx;                 // To gprf0 of aeMB2_gprf.v
49
   input [31:0]          bsf_mx;                 // To gprf0 of aeMB2_gprf.v
50 125 sybreon
   input                dena;                   // To gprf0 of aeMB2_gprf.v
51 118 sybreon
   input [31:0]          dwb_mx;                 // To gprf0 of aeMB2_gprf.v
52 125 sybreon
   input                gclk;                   // To gprf0 of aeMB2_gprf.v
53
   input                gpha;                   // To gprf0 of aeMB2_gprf.v
54
   input                grst;                   // To gprf0 of aeMB2_gprf.v
55
   input [31:0]          ich_dat;                // To gprf0 of aeMB2_gprf.v
56 118 sybreon
   input [31:0]          mul_mx;                 // To gprf0 of aeMB2_gprf.v
57
   input [2:0]           mux_ex;                 // To gprf0 of aeMB2_gprf.v
58
   input [2:0]           mux_of;                 // To gprf0 of aeMB2_gprf.v
59
   input [4:0]           rd_ex;                  // To gprf0 of aeMB2_gprf.v
60 125 sybreon
   input [4:0]           rd_of;                  // To gprf0 of aeMB2_gprf.v
61 118 sybreon
   input [31:2]         rpc_mx;                 // To gprf0 of aeMB2_gprf.v
62
   input [3:0]           sel_mx;                 // To gprf0 of aeMB2_gprf.v
63
   input [31:0]          sfr_mx;                 // To gprf0 of aeMB2_gprf.v
64
   input [31:0]          xwb_mx;                 // To gprf0 of aeMB2_gprf.v
65
   // End of automatics
66
   /*AUTOWIRE*/
67 125 sybreon
 
68
   // TODO: Add special function registers
69
 
70 118 sybreon
   aeMB2_gprf
71
     #(/*AUTOINSTPARAM*/
72
       // Parameters
73
       .AEMB_HTX                        (AEMB_HTX))
74
   gprf0
75
     (/*AUTOINST*/
76
      // Outputs
77
      .opa_if                           (opa_if[31:0]),
78
      .opb_if                           (opb_if[31:0]),
79
      .opd_if                           (opd_if[31:0]),
80
      // Inputs
81
      .mux_of                           (mux_of[2:0]),
82
      .mux_ex                           (mux_ex[2:0]),
83
      .ich_dat                          (ich_dat[31:0]),
84
      .rd_of                            (rd_of[4:0]),
85
      .rd_ex                            (rd_ex[4:0]),
86
      .sel_mx                           (sel_mx[3:0]),
87
      .rpc_mx                           (rpc_mx[31:2]),
88
      .xwb_mx                           (xwb_mx[31:0]),
89
      .dwb_mx                           (dwb_mx[31:0]),
90
      .alu_mx                           (alu_mx[31:0]),
91
      .sfr_mx                           (sfr_mx[31:0]),
92
      .mul_mx                           (mul_mx[31:0]),
93
      .bsf_mx                           (bsf_mx[31:0]),
94
      .gclk                             (gclk),
95
      .grst                             (grst),
96
      .dena                             (dena),
97
      .gpha                             (gpha));
98
 
99
endmodule // aeMB2_regs
100
 
101 125 sybreon
// $Log: not supported by cvs2svn $
102
// Revision 1.1  2008/04/18 00:21:52  sybreon
103
// Initial import.
104
//

powered by: WebSVN 2.1.0

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