04using Library Modules
04using Library Modules
in Verilog Designs
For Quartus II 12.0
1 Introduction
This tutorial explains how Alteras library modules can be included in Verilog-based designs, which are implemented
by using the Quartus
II software.
Contents:
Example Circuit
Library of Parameterized Modules
Augmented Circuit with an LPM
Results for the Augmented Design
Altera Corporation - University Program
May 2012
1
USING LIBRARY MODULES IN VERILOG DESIGNS For Quartus II 12.0
2 Background
Practical designs often include commonly used circuit blocks such as adders, subtractors, multipliers, decoders,
counters, and shifters. Altera provides efcient implementations of such blocks in the form of library modules that
can be instantiated in Verilog designs. The compiler may recognize that a standard function specied in Verilog code
can be realized using a library module, in which case it may automatically infer this module. However, many library
modules provide functionality that is too complex to be recognized automatically by the compiler. These modules
have to be instantiated in the design explicitly by the user. Quartus