-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtop.v
34 lines (30 loc) · 769 Bytes
/
top.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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2017/11/07 13:50:53
// Design Name:
// Module Name: top
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module top(
input wire clk,rst,
output wire[31:0] writedata,dataadr,
output wire memwrite
);
wire[31:0] pc,instr,readdata;
mips mips(clk,rst,pc,instr,memwrite,dataadr,writedata,readdata);
inst_mem imem(~clk,pc[7:2],instr);
data_mem dmem(~clk,memwrite,dataadr,writedata,readdata);
endmodule