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

Subversion Repositories igor

[/] [igor/] [trunk/] [processor/] [mc/] [fp_to_int.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 fp_to_int.vhd when simulating
30
-- the core, fp_to_int. 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 fp_to_int IS
44
        port (
45
        a: IN std_logic_VECTOR(25 downto 0);
46
        clk: IN std_logic;
47
        result: OUT std_logic_VECTOR(25 downto 0);
48
        overflow: OUT std_logic;
49
        invalid_op: OUT std_logic);
50
END fp_to_int;
51
 
52
ARCHITECTURE fp_to_int_a OF fp_to_int IS
53
-- synthesis translate_off
54
component wrapped_fp_to_int
55
        port (
56
        a: IN std_logic_VECTOR(25 downto 0);
57
        clk: IN std_logic;
58
        result: OUT std_logic_VECTOR(25 downto 0);
59
        overflow: OUT std_logic;
60
        invalid_op: OUT std_logic);
61
end component;
62
 
63
-- Configuration specification 
64
        for all : wrapped_fp_to_int use entity XilinxCoreLib.floating_point_v3_0(behavioral)
65
                generic map(
66
                        c_has_b_nd => 0,
67
                        c_speed => 2,
68
                        c_has_sclr => 0,
69
                        c_has_a_rfd => 0,
70
                        c_b_fraction_width => 20,
71
                        c_has_operation_nd => 0,
72
                        c_family => "spartan3",
73
                        c_has_exception => 0,
74
                        c_a_fraction_width => 20,
75
                        c_has_flt_to_fix => 1,
76
                        c_has_flt_to_flt => 0,
77
                        c_has_fix_to_flt => 0,
78
                        c_has_invalid_op => 1,
79
                        c_latency => 0,
80
                        c_has_divide_by_zero => 0,
81
                        c_has_overflow => 1,
82
                        c_mult_usage => 0,
83
                        c_has_rdy => 0,
84
                        c_result_fraction_width => 0,
85
                        c_has_divide => 0,
86
                        c_has_inexact => 0,
87
                        c_has_underflow => 0,
88
                        c_has_sqrt => 0,
89
                        c_has_add => 0,
90
                        c_has_status => 0,
91
                        c_has_a_negate => 0,
92
                        c_optimization => 1,
93
                        c_has_a_nd => 0,
94
                        c_has_aclr => 0,
95
                        c_has_b_negate => 0,
96
                        c_has_subtract => 0,
97
                        c_compare_operation => 8,
98
                        c_rate => 1,
99
                        c_has_compare => 0,
100
                        c_has_operation_rfd => 0,
101
                        c_has_b_rfd => 0,
102
                        c_result_width => 26,
103
                        c_b_width => 26,
104
                        c_status_early => 0,
105
                        c_a_width => 26,
106
                        c_has_cts => 0,
107
                        c_has_ce => 0,
108
                        c_has_multiply => 0);
109
-- synthesis translate_on
110
BEGIN
111
-- synthesis translate_off
112
U0 : wrapped_fp_to_int
113
                port map (
114
                        a => a,
115
                        clk => clk,
116
                        result => result,
117
                        overflow => overflow,
118
                        invalid_op => invalid_op);
119
-- synthesis translate_on
120
 
121
END fp_to_int_a;
122
 

powered by: WebSVN 2.1.0

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