forked from DinaMMF/Graduation-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Modified_Operation.v
33 lines (31 loc) · 928 Bytes
/
Modified_Operation.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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 20:53:31 03/22/2021
// Design Name:
// Module Name: Modified_Operation
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
`default_nettype none
module Modified_Operation(
input wire fpu_operand_a_s,
input wire fpu_operand_b_s,
input wire [1:0] fpu_operation,
output wire [1:0] fpu_operation_modified
);
assign fpu_operation_modified[1] = (fpu_operation[1] == 1'b1) ? 1'b1 : 1'b0;
assign fpu_operation_modified[0] = (fpu_operation[1] == 1'b1) ? 1'b0 : fpu_operation[0] ^ (fpu_operand_a_s ^ fpu_operand_b_s);
endmodule
`resetall