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

Subversion Repositories aemb

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

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

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

powered by: WebSVN 2.1.0

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