OpenCores
URL https://opencores.org/ocsvn/xilinx_virtex_fp_library/xilinx_virtex_fp_library/trunk

Subversion Repositories xilinx_virtex_fp_library

[/] [xilinx_virtex_fp_library/] [trunk/] [GeneralPrecMAF/] [effective_op.v] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 constantin
`timescale 1ns / 1ps
2
//////////////////////////////////////////////////////////////////////////////////
3
// Company: 
4
// Engineer: 
5
// 
6
// Create Date:    19:08:41 10/21/2013 
7
// Design Name: 
8
// Module Name:    effective_op 
9
// Project Name: 
10
// Target Devices: 
11
// Tool versions: 
12
// Description: 
13
//
14
// Dependencies: 
15
//
16
// Revision: 
17
// Revision 0.01 - File Created
18
// Additional Comments: 
19
//
20
//////////////////////////////////////////////////////////////////////////////////
21
module effective_op(    input sign_a,
22
                                                        input sign_b,
23
                                                        input sign_c,
24
                                                        input sub,
25
                                                        output reg eff_sub);
26
 
27
        wire [2:0] sign_string;
28
 
29
        assign sign_string = {sub, sign_c, sign_a^sign_b};
30
 
31
        always
32
                @(*)
33
        begin
34
                case(sign_string)
35
                        3'b000: eff_sub = 1'b0;
36
                        3'b001: eff_sub = 1'b1;
37
                        3'b010: eff_sub = 1'b1;
38
                        3'b011: eff_sub = 1'b0;
39
                        3'b100: eff_sub = 1'b1;
40
                        3'b101: eff_sub = 1'b0;
41
                        3'b110: eff_sub = 1'b0;
42
                        3'b111: eff_sub = 1'b1;
43
                        default:        eff_sub = 1'b0;
44
                endcase
45
        end
46
 
47
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.