04/19/23 Copyright © 1997 Altera Corporation
How to use LPM within VHDL Entry
Danny Mok
Altera HK FAE
([email protected])
04/19/23 Copyright © 1997 Altera Corporation
What is LPM
LPM is some pre-design module which can help you to finish your design more easier
All LPM is parameterized, so you just need to type in the input parameter, the LPM will behave what you want
Example of LPM available– lpm_dff, lpm_rom, lpm_ram_dq etc.
04/19/23 Copyright © 1997 Altera Corporation
Where is the LPM locate ......
Here is the LPM librarylocate at
Here is all the LPM available to the user
04/19/23 Copyright © 1997 Altera Corporation
Use LPM in the Graphic design
I know how to use the LPM within the GraphicDesign Entry, but how about VHDL design Entry
04/19/23 Copyright © 1997 Altera Corporation
How to use the LPM for my VHDL Design
04/19/23 Copyright © 1997 Altera Corporation
Altera provide example
04/19/23 Copyright © 1997 Altera Corporation
Example of LPM_RAM_DQ
04/19/23 Copyright © 1997 Altera Corporation
The LPM_RAM_DQ has been implemented in the EAB
04/19/23 Copyright © 1997 Altera Corporation
Second Example
04/19/23 Copyright © 1997 Altera Corporation
Example LPM_ROM
What is the MIF file
04/19/23 Copyright © 1997 Altera Corporation
What is MIF file
04/19/23 Copyright © 1997 Altera Corporation
DEPTH = 256;WIDTH = 8; ADDRESS_RADIX = HEXDATA_RADIX = HEX; CONTENTBEGIN[0..F]:3F;6:F;8:F E 5;END ;
04/19/23 Copyright © 1997 Altera Corporation
Third Example
04/19/23 Copyright © 1997 Altera Corporation
Example of CLKLOCK
04/19/23 Copyright © 1997 Altera Corporation
04/19/23 Copyright © 1997 Altera Corporation
Conclusion
LPM is a very powerful library to assit you to do the design
LPM can be used during– Graphic Design Entry
– AHDL Design Entry
– VHDL Design Entry
– EDIF Design Entry