-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmem_system_hier.v
59 lines (50 loc) · 1.93 KB
/
mem_system_hier.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* $Author: karu $ */
/* $LastChangedDate: 2009-04-24 09:28:13 -0500 (Fri, 24 Apr 2009) $ */
/* $Rev: 77 $ */
`default_nettype none
module mem_system_hier(/*AUTOARG*/
// Outputs
DataOut, Done, Stall, CacheHit,
// Inputs
Addr, DataIn, Rd, Wr, createdump
);
input wire [15:0] Addr;
input wire [15:0] DataIn;
input wire Rd;
input wire Wr;
input wire createdump;
output wire [15:0] DataOut;
output wire Done;
output wire Stall;
output wire CacheHit;
/* data_mem = 1, inst_mem = 0 *
* needed for cache parameter */
parameter mem_type = 0;
/*AUTOWIRE*/
// Beginning of automatic wires (for undeclared instantiated-module outputs)
wire err; // From m0 of mem_system.v
wire clk, rst;
// End of automatics
clkrst clkgen(.clk(clk),
.rst(rst),
.err(err) );
// For now force to be data memory all the time
// Does not matter until you hook this up into your final processor
mem_system #(1) m0(/*AUTOINST*/
// Outputs
.DataOut (DataOut[15:0]),
.Done (Done),
.Stall (Stall),
.CacheHit (CacheHit),
.err (err),
// Inputs
.Addr (Addr[15:0]),
.DataIn (DataIn[15:0]),
.Rd (Rd),
.Wr (Wr),
.createdump (createdump),
.clk (clk),
.rst (rst));
endmodule // mem_system_hier
`default_nettype wire
// DUMMY LINE FOR REV CONTROL :9: