import and implement quartus i i megawizard library to modelsim simulation
DESCRIPTION
Import and Implement Quartus I I Megawizard library to modelsim simulation. First Part : generate PLL/FIFO by megawizard. Generate PLL using megawizard. Choose megaWizard. Phase-locked loop. This is our simulation library file So we have to find this file to generate library. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/1.jpg)
Import and Implement QuartusII Megawizard library to modelsim simulation
![Page 2: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/2.jpg)
First Part : generate PLL/FIFO by megawizard
![Page 3: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/3.jpg)
Generate PLL using megawizard
![Page 4: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/4.jpg)
Choose megaWizard
![Page 5: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/5.jpg)
![Page 6: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/6.jpg)
Phase-locked loop
![Page 7: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/7.jpg)
![Page 8: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/8.jpg)
![Page 9: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/9.jpg)
This is our simulation library fileSo we have to find this file to generate library
![Page 10: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/10.jpg)
Next generate FIFO by megawizard
![Page 11: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/11.jpg)
![Page 12: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/12.jpg)
![Page 13: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/13.jpg)
![Page 14: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/14.jpg)
Open FIFO.v and you will see the I/O
![Page 15: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/15.jpg)
Second part: add library to modelsim and simulate PLL/FIFO
![Page 16: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/16.jpg)
1.Find altera_mf.v from path C:\altera\91\quartus\eda\sim_lib\altera_mf.v
2.Create a new modelsim project and Copy altera_mf.v to this project
3.Compile altera_mf.v then we have the work folder.
4.The work folder is our library, you can rename as altera_mf folder
![Page 17: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/17.jpg)
We can rename this folder as altera_mf
![Page 18: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/18.jpg)
![Page 19: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/19.jpg)
Choose Library and add altera_mf folder which we had built
![Page 20: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/20.jpg)
We use 80MHz oscillator, so using 10ns as time scale is enough
If you have error during simulation, disable optimization function
![Page 21: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/21.jpg)
Right click the model and signal you want to see
Add signal to see the waveform
![Page 22: Import and Implement Quartus I I Megawizard library to modelsim simulation](https://reader036.vdocuments.site/reader036/viewer/2022062323/56816688550346895dda400c/html5/thumbnails/22.jpg)