Imported Upstream version 3.0
[debian/gnuradio] / usrp / fpga / megacells / mylpm_addsub.v
1 // megafunction wizard: %LPM_ADD_SUB%
2 // GENERATION: STANDARD
3 // VERSION: WM1.0
4 // MODULE: lpm_add_sub 
5
6 // ============================================================
7 // File Name: mylpm_addsub.v
8 // Megafunction Name(s):
9 //                      lpm_add_sub
10 // ============================================================
11 // ************************************************************
12 // THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
13 // ************************************************************
14
15
16 //Copyright (C) 1991-2003 Altera Corporation
17 //Any  megafunction  design,  and related netlist (encrypted  or  decrypted),
18 //support information,  device programming or simulation file,  and any other
19 //associated  documentation or information  provided by  Altera  or a partner
20 //under  Altera's   Megafunction   Partnership   Program  may  be  used  only
21 //to program  PLD  devices (but not masked  PLD  devices) from  Altera.   Any
22 //other  use  of such  megafunction  design,  netlist,  support  information,
23 //device programming or simulation file,  or any other  related documentation
24 //or information  is prohibited  for  any  other purpose,  including, but not
25 //limited to  modification,  reverse engineering,  de-compiling, or use  with
26 //any other  silicon devices,  unless such use is  explicitly  licensed under
27 //a separate agreement with  Altera  or a megafunction partner.  Title to the
28 //intellectual property,  including patents,  copyrights,  trademarks,  trade
29 //secrets,  or maskworks,  embodied in any such megafunction design, netlist,
30 //support  information,  device programming or simulation file,  or any other
31 //related documentation or information provided by  Altera  or a megafunction
32 //partner, remains with Altera, the megafunction partner, or their respective
33 //licensors. No other licenses, including any licenses needed under any third
34 //party's intellectual property, are provided herein.
35
36
37 module mylpm_addsub (
38         add_sub,
39         dataa,
40         datab,
41         clock,
42         result);
43
44         input     add_sub;
45         input   [15:0]  dataa;
46         input   [15:0]  datab;
47         input     clock;
48         output  [15:0]  result;
49
50         wire [15:0] sub_wire0;
51         wire [15:0] result = sub_wire0[15:0];
52
53         lpm_add_sub     lpm_add_sub_component (
54                                 .dataa (dataa),
55                                 .add_sub (add_sub),
56                                 .datab (datab),
57                                 .clock (clock),
58                                 .result (sub_wire0));
59         defparam
60                 lpm_add_sub_component.lpm_width = 16,
61                 lpm_add_sub_component.lpm_direction = "UNUSED",
62                 lpm_add_sub_component.lpm_type = "LPM_ADD_SUB",
63                 lpm_add_sub_component.lpm_hint = "ONE_INPUT_IS_CONSTANT=NO",
64                 lpm_add_sub_component.lpm_pipeline = 1;
65
66
67 endmodule
68
69 // ============================================================
70 // CNX file retrieval info
71 // ============================================================
72 // Retrieval info: PRIVATE: nBit NUMERIC "16"
73 // Retrieval info: PRIVATE: Function NUMERIC "2"
74 // Retrieval info: PRIVATE: WhichConstant NUMERIC "0"
75 // Retrieval info: PRIVATE: ConstantA NUMERIC "0"
76 // Retrieval info: PRIVATE: ConstantB NUMERIC "0"
77 // Retrieval info: PRIVATE: ValidCtA NUMERIC "0"
78 // Retrieval info: PRIVATE: ValidCtB NUMERIC "0"
79 // Retrieval info: PRIVATE: CarryIn NUMERIC "0"
80 // Retrieval info: PRIVATE: CarryOut NUMERIC "0"
81 // Retrieval info: PRIVATE: Overflow NUMERIC "0"
82 // Retrieval info: PRIVATE: Latency NUMERIC "1"
83 // Retrieval info: PRIVATE: aclr NUMERIC "0"
84 // Retrieval info: PRIVATE: clken NUMERIC "0"
85 // Retrieval info: PRIVATE: LPM_PIPELINE NUMERIC "1"
86 // Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone"
87 // Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "16"
88 // Retrieval info: CONSTANT: LPM_DIRECTION STRING "UNUSED"
89 // Retrieval info: CONSTANT: LPM_TYPE STRING "LPM_ADD_SUB"
90 // Retrieval info: CONSTANT: LPM_HINT STRING "ONE_INPUT_IS_CONSTANT=NO"
91 // Retrieval info: CONSTANT: LPM_PIPELINE NUMERIC "1"
92 // Retrieval info: USED_PORT: add_sub 0 0 0 0 INPUT NODEFVAL add_sub
93 // Retrieval info: USED_PORT: result 0 0 16 0 OUTPUT NODEFVAL result[15..0]
94 // Retrieval info: USED_PORT: dataa 0 0 16 0 INPUT NODEFVAL dataa[15..0]
95 // Retrieval info: USED_PORT: datab 0 0 16 0 INPUT NODEFVAL datab[15..0]
96 // Retrieval info: USED_PORT: clock 0 0 0 0 INPUT NODEFVAL clock
97 // Retrieval info: CONNECT: @add_sub 0 0 0 0 add_sub 0 0 0 0
98 // Retrieval info: CONNECT: result 0 0 16 0 @result 0 0 16 0
99 // Retrieval info: CONNECT: @dataa 0 0 16 0 dataa 0 0 16 0
100 // Retrieval info: CONNECT: @datab 0 0 16 0 datab 0 0 16 0
101 // Retrieval info: CONNECT: @clock 0 0 0 0 clock 0 0 0 0
102 // Retrieval info: LIBRARY: lpm lpm.lpm_components.all