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/] [DualPathFPAdderMappedConversions/] [effective_op.v] - Blame information for rev 19

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 11 constantin
`timescale 1ns / 1ps
2
//////////////////////////////////////////////////////////////////////////////////
3 19 constantin
// Company:     UPT
4
// Engineer:    Constantina-Elena Gavriliu
5 11 constantin
// 
6
// Create Date:    17:41:11 11/04/2013 
7
// Design Name: 
8
// Module Name:    effective_op 
9
// Project Name: 
10
// Target Devices: 
11
// Tool versions: 
12 19 constantin
// Description: Compute effective operation 
13 11 constantin
//
14
// Dependencies: 
15
//
16
// Revision: 
17
// Revision 0.01 - File Created
18
// Additional Comments: 
19
//
20
//////////////////////////////////////////////////////////////////////////////////
21
module effective_op(    input a_sign,
22
                                                        input b_sign,
23
                                                        input sub,
24
                                                        output reg eff_op);
25
 
26
        always
27
                @(*)
28
        begin
29
                case ({sub,a_sign, b_sign})
30
                        3'b000: eff_op = 0;
31
                        3'b001: eff_op = 1;
32
                        3'b010: eff_op = 1;
33
                        3'b011: eff_op = 0;
34
                        3'b100: eff_op = 1;
35
                        3'b101: eff_op = 0;
36
                        3'b110: eff_op = 0;
37
                        3'b111: eff_op = 1;
38
                endcase
39
        end
40
endmodule

powered by: WebSVN 2.1.0

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