1 |
2 |
dewhisna |
--------------------------------------------------------------------------------
|
2 |
|
|
-- This file is owned and controlled by Xilinx and must be used solely --
|
3 |
|
|
-- for design, simulation, implementation and creation of design files --
|
4 |
|
|
-- limited to Xilinx devices or technologies. Use with non-Xilinx --
|
5 |
|
|
-- devices or technologies is expressly prohibited and immediately --
|
6 |
|
|
-- terminates your license. --
|
7 |
|
|
-- --
|
8 |
|
|
-- XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" SOLELY --
|
9 |
|
|
-- FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR XILINX DEVICES. BY --
|
10 |
|
|
-- PROVIDING THIS DESIGN, CODE, OR INFORMATION AS ONE POSSIBLE --
|
11 |
|
|
-- IMPLEMENTATION OF THIS FEATURE, APPLICATION OR STANDARD, XILINX IS --
|
12 |
|
|
-- MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION IS FREE FROM ANY --
|
13 |
|
|
-- CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE FOR OBTAINING ANY --
|
14 |
|
|
-- RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY --
|
15 |
|
|
-- DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE --
|
16 |
|
|
-- IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR --
|
17 |
|
|
-- REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF --
|
18 |
|
|
-- INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A --
|
19 |
|
|
-- PARTICULAR PURPOSE. --
|
20 |
|
|
-- --
|
21 |
|
|
-- Xilinx products are not intended for use in life support appliances, --
|
22 |
|
|
-- devices, or systems. Use in such applications are expressly --
|
23 |
|
|
-- prohibited. --
|
24 |
|
|
-- --
|
25 |
|
|
-- (c) Copyright 1995-2015 Xilinx, Inc. --
|
26 |
|
|
-- All rights reserved. --
|
27 |
|
|
--------------------------------------------------------------------------------
|
28 |
|
|
--------------------------------------------------------------------------------
|
29 |
|
|
-- You must compile the wrapper file InterpolateMultAdd.vhd when simulating
|
30 |
|
|
-- the core, InterpolateMultAdd. 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 InterpolateMultAdd IS
|
44 |
|
|
PORT (
|
45 |
|
|
a : IN STD_LOGIC_VECTOR(15 DOWNTO 0);
|
46 |
|
|
b : IN STD_LOGIC_VECTOR(11 DOWNTO 0);
|
47 |
|
|
c : IN STD_LOGIC_VECTOR(27 DOWNTO 0);
|
48 |
|
|
subtract : IN STD_LOGIC;
|
49 |
|
|
p : OUT STD_LOGIC_VECTOR(27 DOWNTO 12);
|
50 |
|
|
pcout : OUT STD_LOGIC_VECTOR(47 DOWNTO 0)
|
51 |
|
|
);
|
52 |
|
|
END InterpolateMultAdd;
|
53 |
|
|
|
54 |
|
|
ARCHITECTURE InterpolateMultAdd_a OF InterpolateMultAdd IS
|
55 |
|
|
-- synthesis translate_off
|
56 |
|
|
COMPONENT wrapped_InterpolateMultAdd
|
57 |
|
|
PORT (
|
58 |
|
|
a : IN STD_LOGIC_VECTOR(15 DOWNTO 0);
|
59 |
|
|
b : IN STD_LOGIC_VECTOR(11 DOWNTO 0);
|
60 |
|
|
c : IN STD_LOGIC_VECTOR(27 DOWNTO 0);
|
61 |
|
|
subtract : IN STD_LOGIC;
|
62 |
|
|
p : OUT STD_LOGIC_VECTOR(27 DOWNTO 12);
|
63 |
|
|
pcout : OUT STD_LOGIC_VECTOR(47 DOWNTO 0)
|
64 |
|
|
);
|
65 |
|
|
END COMPONENT;
|
66 |
|
|
|
67 |
|
|
-- Configuration specification
|
68 |
|
|
FOR ALL : wrapped_InterpolateMultAdd USE ENTITY XilinxCoreLib.xbip_multadd_v2_0(behavioral)
|
69 |
|
|
GENERIC MAP (
|
70 |
|
|
C_AB_LATENCY => 0,
|
71 |
|
|
C_A_TYPE => 0,
|
72 |
|
|
C_A_WIDTH => 16,
|
73 |
|
|
C_B_TYPE => 1,
|
74 |
|
|
C_B_WIDTH => 12,
|
75 |
|
|
C_CE_OVERRIDES_SCLR => 0,
|
76 |
|
|
C_C_LATENCY => 0,
|
77 |
|
|
C_C_TYPE => 1,
|
78 |
|
|
C_C_WIDTH => 28,
|
79 |
|
|
C_OUT_HIGH => 27,
|
80 |
|
|
C_OUT_LOW => 12,
|
81 |
|
|
C_TEST_CORE => 0,
|
82 |
|
|
C_USE_PCIN => 0,
|
83 |
|
|
C_VERBOSITY => 0,
|
84 |
|
|
C_XDEVICEFAMILY => "spartan6"
|
85 |
|
|
);
|
86 |
|
|
-- synthesis translate_on
|
87 |
|
|
BEGIN
|
88 |
|
|
-- synthesis translate_off
|
89 |
|
|
U0 : wrapped_InterpolateMultAdd
|
90 |
|
|
PORT MAP (
|
91 |
|
|
a => a,
|
92 |
|
|
b => b,
|
93 |
|
|
c => c,
|
94 |
|
|
subtract => subtract,
|
95 |
|
|
p => p,
|
96 |
|
|
pcout => pcout
|
97 |
|
|
);
|
98 |
|
|
-- synthesis translate_on
|
99 |
|
|
|
100 |
|
|
END InterpolateMultAdd_a;
|