Download altmult_add Megafunction User Guide
Transcript
Contents About this User Guide .............................................................................. v Revision History ........................................................................................................................................ v How to Contact Altera .............................................................................................................................. v Typographic Conventions ...................................................................................................................... vi Chapter 1. About this Megafunction Device Family Support ......................................................................................................................... Introduction ............................................................................................................................................ Features ................................................................................................................................................... General Description ............................................................................................................................... Common Applications .................................................................................................................... Resource Utilization and Performance ............................................................................................... 1–1 1–1 1–1 1–1 1–4 1–5 Chapter 2. Getting Started Software and System Requirements ................................................................................................... 2–1 MegaWizard Plug-In Manager Customization ................................................................................. 2–1 MegaWizard Page Descriptions .......................................................................................................... 2–1 Inferring Megafunctions from HDL Code .................................................................................... 2–8 Instantiating Megafunctions in HDL Code ....................................................................................... 2–9 Identifying a Megafunction after Compilation ................................................................................. 2–9 Simulation ............................................................................................................................................. 2–10 Quartus II Simulator ...................................................................................................................... 2–10 EDA Simulation .............................................................................................................................. 2–10 SignalTap II Embedded Logic Analyzer .......................................................................................... 2–11 Design Example: Complex Multiplication ....................................................................................... 2–11 Design Files ..................................................................................................................................... 2–11 Example 1 .............................................................................................................................................. 2–11 Generate a 9 × 9-Bit Multiplier/Adder (the Real Expression) ................................................. 2–12 Generate a 9 x 9-Bit Multiplier/Adder (the Imaginary Expression) ...................................... 2–21 Combine real_mult and image_mult to Create a Complex Multiplier .................................. 2–27 Implement the 9 × 9 Complex Multiplier Design ...................................................................... 2–29 Functional Results—Simulate the Complex Multiplier Design .............................................. 2–31 Timing Results ................................................................................................................................ 2–33 Simulate the Complex Multiplier Design in ModelSim-Altera ............................................... 2–35 Design Example: Implementing a Simple FIR Filter ...................................................................... 2–37 Design Files ..................................................................................................................................... 2–38 Example 2 .............................................................................................................................................. 2–38 Generate a 4-Tap FIR Filter ........................................................................................................... 2–38 Implement the FIR 4-Tap Design ................................................................................................. 2–48 Functional Results—Simulate the FIR 4-Tap Design ................................................................ 2–50 Timing Results ................................................................................................................................ 2–52 Altera Corporation iii