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

Subversion Repositories igor

[/] [igor/] [trunk/] [processor/] [mc/] [fpu_div.vhd] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 atypic
--------------------------------------------------------------------------------
2
--     This file is owned and controlled by Xilinx and must be used           --
3
--     solely for design, simulation, implementation and creation of          --
4
--     design files limited to Xilinx devices or technologies. Use            --
5
--     with non-Xilinx devices or technologies is expressly prohibited        --
6
--     and immediately terminates your license.                               --
7
--                                                                            --
8
--     XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"          --
9
--     SOLELY FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR                --
10
--     XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE, OR INFORMATION        --
11
--     AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION            --
12
--     OR STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS              --
13
--     IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,                --
14
--     AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE       --
15
--     FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY               --
16
--     WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE                --
17
--     IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR         --
18
--     REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF        --
19
--     INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS        --
20
--     FOR A PARTICULAR PURPOSE.                                              --
21
--                                                                            --
22
--     Xilinx products are not intended for use in life support               --
23
--     appliances, devices, or systems. Use in such applications are          --
24
--     expressly prohibited.                                                  --
25
--                                                                            --
26
--     (c) Copyright 1995-2007 Xilinx, Inc.                                   --
27
--     All rights reserved.                                                   --
28
--------------------------------------------------------------------------------
29
-- You must compile the wrapper file fpu_div.vhd when simulating
30
-- the core, fpu_div. When compiling the wrapper file, be sure to
31
-- reference the XilinxCoreLib VHDL simulation library. For detailed
32
-- instructions, please refer to the "CORE Generator Help".
33
 
34
-- The synthesis directives "translate_off/translate_on" specified
35
-- below are supported by Xilinx, Mentor Graphics and Synplicity
36
-- synthesis tools. Ensure they are correct for your synthesis tool(s).
37
 
38
LIBRARY ieee;
39
USE ieee.std_logic_1164.ALL;
40
-- synthesis translate_off
41
Library XilinxCoreLib;
42
-- synthesis translate_on
43
ENTITY fpu_div IS
44
        port (
45
        a: IN std_logic_VECTOR(25 downto 0);
46
        b: IN std_logic_VECTOR(25 downto 0);
47
        clk: IN std_logic;
48
        result: OUT std_logic_VECTOR(25 downto 0);
49
        underflow: OUT std_logic;
50
        overflow: OUT std_logic;
51
        invalid_op: OUT std_logic;
52
        divide_by_zero: OUT std_logic);
53
END fpu_div;
54
 
55
ARCHITECTURE fpu_div_a OF fpu_div IS
56
-- synthesis translate_off
57
component wrapped_fpu_div
58
        port (
59
        a: IN std_logic_VECTOR(25 downto 0);
60
        b: IN std_logic_VECTOR(25 downto 0);
61
        clk: IN std_logic;
62
        result: OUT std_logic_VECTOR(25 downto 0);
63
        underflow: OUT std_logic;
64
        overflow: OUT std_logic;
65
        invalid_op: OUT std_logic;
66
        divide_by_zero: OUT std_logic);
67
end component;
68
 
69
-- Configuration specification 
70
        for all : wrapped_fpu_div use entity XilinxCoreLib.floating_point_v3_0(behavioral)
71
                generic map(
72
                        c_has_b_nd => 0,
73
                        c_speed => 2,
74
                        c_has_sclr => 0,
75
                        c_has_a_rfd => 0,
76
                        c_b_fraction_width => 20,
77
                        c_has_operation_nd => 0,
78
                        c_family => "spartan3",
79
                        c_has_exception => 0,
80
                        c_a_fraction_width => 20,
81
                        c_has_flt_to_fix => 0,
82
                        c_has_flt_to_flt => 0,
83
                        c_has_fix_to_flt => 0,
84
                        c_has_invalid_op => 1,
85
                        c_latency => 0,
86
                        c_has_divide_by_zero => 1,
87
                        c_has_overflow => 1,
88
                        c_mult_usage => 0,
89
                        c_has_rdy => 0,
90
                        c_result_fraction_width => 20,
91
                        c_has_divide => 1,
92
                        c_has_inexact => 0,
93
                        c_has_underflow => 1,
94
                        c_has_sqrt => 0,
95
                        c_has_add => 0,
96
                        c_has_status => 0,
97
                        c_has_a_negate => 0,
98
                        c_optimization => 1,
99
                        c_has_a_nd => 0,
100
                        c_has_aclr => 0,
101
                        c_has_b_negate => 0,
102
                        c_has_subtract => 0,
103
                        c_compare_operation => 8,
104
                        c_rate => 1,
105
                        c_has_compare => 0,
106
                        c_has_operation_rfd => 0,
107
                        c_has_b_rfd => 0,
108
                        c_result_width => 26,
109
                        c_b_width => 26,
110
                        c_status_early => 0,
111
                        c_a_width => 26,
112
                        c_has_cts => 0,
113
                        c_has_ce => 0,
114
                        c_has_multiply => 0);
115
-- synthesis translate_on
116
BEGIN
117
-- synthesis translate_off
118
U0 : wrapped_fpu_div
119
                port map (
120
                        a => a,
121
                        b => b,
122
                        clk => clk,
123
                        result => result,
124
                        underflow => underflow,
125
                        overflow => overflow,
126
                        invalid_op => invalid_op,
127
                        divide_by_zero => divide_by_zero);
128
-- synthesis translate_on
129
 
130
END fpu_div_a;
131
 

powered by: WebSVN 2.1.0

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