-
Notifications
You must be signed in to change notification settings - Fork 0
/
editedpc.v
34 lines (31 loc) · 861 Bytes
/
editedpc.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: 17:12:00 10/29/2022
// Design Name:
// Module Name: editedpc
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module editedpc (next_instruction_address, clk, hit, curr_instruction_address);
input [31:0] next_instruction_address;
input clk;
input hit;
output reg [31:0] curr_instruction_address;
initial curr_instruction_address = 0;
always @(negedge clk) begin
if (hit == 1'b1)
#0.001 curr_instruction_address <= next_instruction_address;
end
endmodule