-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipe_IF.v
37 lines (34 loc) · 822 Bytes
/
pipe_IF.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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 22:07:48 04/16/2016
// Design Name:
// Module Name: pipe_IF
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module pipe_IF(clrn,clk,
newInst,pc
);
output [31:0] pc;
input clrn,clk;
output [31:0] newInst;
wire [31:0] newInst;
wire [31:0] nextPc;
wire [31:0] pc;
cla32 pcplus4(pc,32'h00000004,1'b0,nextPc);
IP_ROM inst_mem(pc,newInst);
//IF_ID_reg inst_reg(newInst,inst,clk,clrn);
dff32 ip(nextPc,clk,clrn,pc);
endmodule