Copyright ? 1997 Altera Corporation
3/3/2011
How to use LPM within VHDL Entry
Danny Mok
Altera HK FAE
(dmok@altera.com)
Copyright ? 1997 Altera Corporation
3/3/2011
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.
Copyright ? 1997 Altera Corporation
3/3/2011
Where is the LPM locate,.....
Here is the LPM library
locate at
Here is all the LPM
available to the user
Copyright ? 1997 Altera Corporation
3/3/2011
Use LPM in the Graphic design
I know how to use the LPM within the Graphic
Design Entry,but how about VHDL design
Entry
Copyright ? 1997 Altera Corporation
3/3/2011
How to use the LPM for my VHDL Design
Copyright ? 1997 Altera Corporation
3/3/2011
Altera provide example
Copyright ? 1997 Altera Corporation
3/3/2011
Example of LPM_RAM_DQ
Copyright ? 1997 Altera Corporation
3/3/2011
The LPM_RAM_DQ has been implemented in the EAB
Copyright ? 1997 Altera Corporation
3/3/2011
Second Example
Copyright ? 1997 Altera Corporation
3/3/2011
Example LPM_ROM
What is the MIF file
Copyright ? 1997 Altera Corporation
3/3/2011
What is MIF file
Copyright ? 1997 Altera Corporation
3/3/2011
DEPTH = 256;
WIDTH = 8;
ADDRESS_RADIX = HEX
DATA_RADIX = HEX;
CONTENT
BEGIN
[0..F]:3F;
6:F;
8:F E 5;
END ;
Copyright ? 1997 Altera Corporation
3/3/2011
Third Example
Copyright ? 1997 Altera Corporation
3/3/2011
Example of CLKLOCK
Copyright ? 1997 Altera Corporation
3/3/2011
Copyright ? 1997 Altera Corporation
3/3/2011
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
3/3/2011
How to use LPM within VHDL Entry
Danny Mok
Altera HK FAE
(dmok@altera.com)
Copyright ? 1997 Altera Corporation
3/3/2011
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.
Copyright ? 1997 Altera Corporation
3/3/2011
Where is the LPM locate,.....
Here is the LPM library
locate at
Here is all the LPM
available to the user
Copyright ? 1997 Altera Corporation
3/3/2011
Use LPM in the Graphic design
I know how to use the LPM within the Graphic
Design Entry,but how about VHDL design
Entry
Copyright ? 1997 Altera Corporation
3/3/2011
How to use the LPM for my VHDL Design
Copyright ? 1997 Altera Corporation
3/3/2011
Altera provide example
Copyright ? 1997 Altera Corporation
3/3/2011
Example of LPM_RAM_DQ
Copyright ? 1997 Altera Corporation
3/3/2011
The LPM_RAM_DQ has been implemented in the EAB
Copyright ? 1997 Altera Corporation
3/3/2011
Second Example
Copyright ? 1997 Altera Corporation
3/3/2011
Example LPM_ROM
What is the MIF file
Copyright ? 1997 Altera Corporation
3/3/2011
What is MIF file
Copyright ? 1997 Altera Corporation
3/3/2011
DEPTH = 256;
WIDTH = 8;
ADDRESS_RADIX = HEX
DATA_RADIX = HEX;
CONTENT
BEGIN
[0..F]:3F;
6:F;
8:F E 5;
END ;
Copyright ? 1997 Altera Corporation
3/3/2011
Third Example
Copyright ? 1997 Altera Corporation
3/3/2011
Example of CLKLOCK
Copyright ? 1997 Altera Corporation
3/3/2011
Copyright ? 1997 Altera Corporation
3/3/2011
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