-
Notifications
You must be signed in to change notification settings - Fork 0
/
CPU.v
66 lines (59 loc) · 1.36 KB
/
CPU.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
60
61
62
63
64
65
66
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2022/06/19 22:03:47
// Design Name:
// Module Name: CPU
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module MyCPU(
input clk,
input rst_n,
input RUN
);
wire [31:0] BUS_addr;
wire [31:0] BUS_wdata;
wire [31:0] BUS_rdata;
wire BUS_valid;
wire BUS_wready;
wire BUS_rready;
wire BUS_rvalid;
wire BUS_mode;
CPU_core my_core(
.clk(clk),
.rst_n(rst_n),
.RUN(RUN),
.BUS_addr(BUS_addr),
.BUS_wdata(BUS_wdata),
.BUS_rdata(BUS_rdata),
.BUS_valid(BUS_valid),
.BUS_wready(BUS_wready),
.BUS_rready(BUS_rready),
.BUS_rvalid(BUS_rvalid),
.BUS_mode(BUS_mode)
);
RAM_Slave my_slave (
.clk(clk),
.rst_n(rst_n),
.BUS_addr(BUS_addr),
.BUS_wdata(BUS_wdata),
.BUS_rdata(BUS_rdata),
.BUS_valid(BUS_valid),
.BUS_wready(BUS_wready),
.BUS_rready(BUS_rready),
.BUS_rvalid(BUS_rvalid),
.BUS_mode(BUS_mode)
);
endmodule