-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidp.v
More file actions
39 lines (35 loc) · 886 Bytes
/
Copy pathidp.v
File metadata and controls
39 lines (35 loc) · 886 Bytes
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 31.07.2024 13:57:04
// Design Name:
// Module Name: idp
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module idp(
input clk, rst, sel, en,
input [2:0] write_add, fir_add, sec_add,
input [3:0] opcode,
input [15:0] secin,
output [15:0] fir,
output [15:0] aluout,
output N, Z, C
);
wire [15:0] secout;
wire [15:0] secmux;
register regii(clk, rst, en, write_add, fir_add, sec_add, aluout, fir, sec);
alu a1(fir, secmux, opcode, aluout, N, Z, C);
assign secmux = sel ? secin : sec ;
endmodule