-
Notifications
You must be signed in to change notification settings - Fork 1
/
Alu_final.sv
47 lines (42 loc) · 834 Bytes
/
Alu_final.sv
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:25:11 05/09/2017
// Design Name:
// Module Name: Alu_final
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module Alu_final(
input [31:0] a,
input [31:0] b,
input [1:0] Alu_op,
input [5:0] funct,
output zero,
output [31:0] result
);
logic [5:0] control;
ALU A1(
.a(a),
.b(b),
.ctrl(control),
.zero (zero),
.result (result)
);
Alu_ctrl C2(
.Alu_op(Alu_op),
.funct(funct),
.ctrl(control)
);
endmodule