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

Subversion Repositories aemb

[/] [aemb/] [branches/] [DEV_SYBREON/] [rtl/] [verilog/] [aeMB_core.v] - Blame information for rev 191

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 71 sybreon
// $Id: aeMB_core.v,v 1.9 2007-11-23 14:06:41 sybreon Exp $
2
//
3
// AEMB 32'bit RISC MICROPROCESSOR CORE
4
//
5
// Copyright (C) 2004-2007 Shawn Tan Ser Ngiap <shawn.tan@aeste.net>
6
//  
7
// This file is part of AEMB.
8
//
9
// AEMB is free software: you can redistribute it and/or modify it
10
// under the terms of the GNU Lesser General Public License as
11
// published by the Free Software Foundation, either version 3 of the
12
// License, or (at your option) any later version.
13
//
14
// AEMB is distributed in the hope that it will be useful, but WITHOUT
15
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
17
// Public License for more details.
18
//
19
// You should have received a copy of the GNU Lesser General Public
20
// License along with AEMB. If not, see <http://www.gnu.org/licenses/>.
21
//
22
// HISTORY
23
// $Log: not supported by cvs2svn $
24
// Revision 1.8  2007/10/22 19:12:59  sybreon
25
// Made some changes to the interrupt control. In some cases, the interrupt logic waits forever and doesn't execute. Bug was discovered by M. Ettus.
26
//
27
// Revision 1.7  2007/05/30 18:44:30  sybreon
28
// Added interrupt support.
29
//
30
// Revision 1.6  2007/05/17 09:08:21  sybreon
31
// Removed asynchronous reset signal.
32
//
33
// Revision 1.5  2007/04/27 00:23:55  sybreon
34
// Added code documentation.
35
// Improved size & speed of rtl/verilog/aeMB_aslu.v
36
//
37
// Revision 1.4  2007/04/25 22:15:04  sybreon
38
// Added support for 8-bit and 16-bit data types.
39
//
40
// Revision 1.3  2007/04/11 04:30:43  sybreon
41
// Added pipeline stalling from incomplete bus cycles.
42
// Separated sync and async portions of code.
43
//
44
// Revision 1.2  2007/04/04 06:13:23  sybreon
45
// Removed unused signals
46
//
47
// Revision 1.1  2007/03/09 17:52:17  sybreon
48
// initial import
49
//
50 3 sybreon
 
51 71 sybreon
 
52 3 sybreon
module aeMB_core (/*AUTOARG*/
53
   // Outputs
54 71 sybreon
   iwb_stb_o, iwb_adr_o, fsl_wre_o, fsl_tag_o, fsl_stb_o, fsl_dat_o,
55
   fsl_adr_o, dwb_wre_o, dwb_stb_o, dwb_sel_o, dwb_dat_o, dwb_adr_o,
56 3 sybreon
   // Inputs
57 71 sybreon
   sys_rst_i, sys_int_i, sys_clk_i, iwb_dat_i, iwb_ack_i, fsl_dat_i,
58
   fsl_ack_i, dwb_dat_i, dwb_ack_i
59 3 sybreon
   );
60
   // Instruction WB address space
61
   parameter ISIZ = 32;
62
   // Data WB address space
63 71 sybreon
   parameter DSIZ = 32;
64
   // Multiplier
65
   parameter MUL = 1;
66
   // Barrel Shifter
67
   parameter BSF = 1;
68 3 sybreon
 
69
   /*AUTOOUTPUT*/
70
   // Beginning of automatic outputs (from unused autoinst outputs)
71 71 sybreon
   output [DSIZ-1:2]    dwb_adr_o;              // From edk32 of aeMB_edk32.v
72
   output [31:0] dwb_dat_o;              // From edk32 of aeMB_edk32.v
73
   output [3:0]          dwb_sel_o;              // From edk32 of aeMB_edk32.v
74
   output               dwb_stb_o;              // From edk32 of aeMB_edk32.v
75
   output               dwb_wre_o;              // From edk32 of aeMB_edk32.v
76
   output [6:2]         fsl_adr_o;              // From edk32 of aeMB_edk32.v
77
   output [31:0] fsl_dat_o;              // From edk32 of aeMB_edk32.v
78
   output               fsl_stb_o;              // From edk32 of aeMB_edk32.v
79
   output [1:0]          fsl_tag_o;              // From edk32 of aeMB_edk32.v
80
   output               fsl_wre_o;              // From edk32 of aeMB_edk32.v
81
   output [ISIZ-1:2]    iwb_adr_o;              // From edk32 of aeMB_edk32.v
82
   output               iwb_stb_o;              // From edk32 of aeMB_edk32.v
83 3 sybreon
   // End of automatics
84
   /*AUTOINPUT*/
85
   // Beginning of automatic inputs (from unused autoinst inputs)
86 71 sybreon
   input                dwb_ack_i;              // To edk32 of aeMB_edk32.v
87
   input [31:0]          dwb_dat_i;              // To edk32 of aeMB_edk32.v
88
   input                fsl_ack_i;              // To edk32 of aeMB_edk32.v
89
   input [31:0]          fsl_dat_i;              // To edk32 of aeMB_edk32.v
90
   input                iwb_ack_i;              // To edk32 of aeMB_edk32.v
91
   input [31:0]          iwb_dat_i;              // To edk32 of aeMB_edk32.v
92
   input                sys_clk_i;              // To edk32 of aeMB_edk32.v
93
   input                sys_int_i;              // To edk32 of aeMB_edk32.v
94
   input                sys_rst_i;              // To edk32 of aeMB_edk32.v
95 3 sybreon
   // End of automatics
96
   /*AUTOWIRE*/
97
 
98 25 sybreon
   // INSTANTIATIONS /////////////////////////////////////////////////////////////////
99 3 sybreon
 
100 71 sybreon
   /*
101
    aeMB_edk32 AUTO_TEMPLATE (
102
    .dwb_adr_o(dwb_adr_o[DSIZ-1:2]),
103
    .iwb_adr_o(iwb_adr_o[ISIZ-1:2]),
104
    );
105
    */
106 3 sybreon
 
107 71 sybreon
   aeMB_edk32 #(ISIZ, DSIZ, MUL, BSF)
108
   edk32 (/*AUTOINST*/
109
          // Outputs
110
          .dwb_adr_o                    (dwb_adr_o[DSIZ-1:2]),   // Templated
111
          .dwb_dat_o                    (dwb_dat_o[31:0]),
112
          .dwb_sel_o                    (dwb_sel_o[3:0]),
113
          .dwb_stb_o                    (dwb_stb_o),
114
          .dwb_wre_o                    (dwb_wre_o),
115
          .fsl_adr_o                    (fsl_adr_o[6:2]),
116
          .fsl_dat_o                    (fsl_dat_o[31:0]),
117
          .fsl_stb_o                    (fsl_stb_o),
118
          .fsl_tag_o                    (fsl_tag_o[1:0]),
119
          .fsl_wre_o                    (fsl_wre_o),
120
          .iwb_adr_o                    (iwb_adr_o[ISIZ-1:2]),   // Templated
121
          .iwb_stb_o                    (iwb_stb_o),
122
          // Inputs
123
          .dwb_ack_i                    (dwb_ack_i),
124
          .dwb_dat_i                    (dwb_dat_i[31:0]),
125
          .fsl_ack_i                    (fsl_ack_i),
126
          .fsl_dat_i                    (fsl_dat_i[31:0]),
127
          .iwb_ack_i                    (iwb_ack_i),
128
          .iwb_dat_i                    (iwb_dat_i[31:0]),
129
          .sys_int_i                    (sys_int_i),
130
          .sys_clk_i                    (sys_clk_i),
131
          .sys_rst_i                    (sys_rst_i));
132 3 sybreon
 
133 71 sybreon
 
134 3 sybreon
endmodule // aeMB_core

powered by: WebSVN 2.1.0

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