-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtop.v
43 lines (38 loc) · 907 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
35
36
37
38
39
40
41
42
43
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2024/07/04 17:09:57
// Design Name:
// Module Name: top
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module top(
input clk,rst,
output [31:0]memwdata,memaddra
);
wire [31:0]pc,dest;
wire memreadM,memwriteM,error;
riscv riscv(
.clk(clk),
.rst(rst),
.memwdata(memwdata),
.memaddra(memaddra),
.pc(pc),
.dest(dest),//dest为实际预测的目标地址
.memreadM(memreadM),
.memwriteM(memwriteM),
.error(error)
);
endmodule