Cia peb hais tias peb muaj ib txoj haujlwm rau Altera FPGA hauv Quartus II ib puag ncig kev tsim kho. Cia peb nqa tawm cov kev sim software: siv cov cim taw qhia rau FPGA inputs thiab saib dab tsi yuav tshwm sim ntawm nws cov txiaj ntsig. Txhawm rau ua qhov no, peb yuav siv cov cuab yeej built-in Simulation Waveform Editor.
Tsim nyog
- - Tus Kheej Lub Computer;
- - teeb tsa kev nyob ib puag ncig Quartus II.
Cov Lus Qhia
Kauj ruam 1
Ua ntej tshaj plaws, peb tso lub Quartus II IDE thiab qhib qhov haujlwm tsim nyog. Tam sim no cia peb tsim cov ntaub ntawv tshiab. Nias qhov tseem ceeb ua ke nrog Ctrl + N lossis los ntawm cov ntawv qhia ua zaub mov-> Tshiab…. Hauv qhov rai uas qhib, xaiv cov hom ntaub ntawv - University Program VWF.
Kauj ruam 2
Lub Simulation Waveform Editor cuab yeej pib ua haujlwm. Peb cia tam sim no khaws cov ntaub ntawv no, tseem khoob, hauv qab cov npe lam nyob hauv qhov project nplaub tshev: Ctrl + S (lossis File -> Save). Kuv yuav sau cov npe ntawv "data_test.vwf" vim tias Kuv yuav muab cov ntaub ntawv xa mus rau FPGA tus pin hu ua "DATA".
Tam sim no peb yuav tsum ntxiv peb cov log tsheb rau cov phiaj xwm. Mus rau cov ntawv qhia zaub mov Kho kom raug-> Ntxig -> Ntxig Node lossis Tsheb npav…. Lub pob "Insert node lossis Bus" yuav qhib, qhov uas peb yuav nyem rau ntawm Node Finder … khawm los tshawb nrhiav kom muaj FPGA npav hauv txoj haujlwm.
Kauj ruam 3
Hauv qhov rai Node Finder, nyem lub npe List. Cov npe ntawm pom cov nodes thiab cov phiaj xwm tsheb npav yuav tshwm nyob rau sab laug ntawm lub qhov rai. Txhawm rau xaiv, ntxiv rau lawv mus rau qhov teb zoo los ntawm txhaj cov khawm coj. Los yog ntxiv txhua yam ntawm ib zaug los ntawm txhaj khawm ">>". Paub meej tias koj xaiv los ntawm txhaj rau "OK" khawm. Hauv qhov ntxig Node lossis Bus lub qhov rai, tseem nyem OK.
Kauj ruam 4
Cov teeb liab theem duab piav qhia ntawm cov pins uas tau xaiv tau tshwm sim hauv lub qhov rai mem tes duab mem tes. Ntxiv mus, theem ntawm cov lus taw qhia nkag mus rau CLK thiab DATA tseem yog qhov sib npaug rau qhov xoom, thiab qib kev tsim tawm tsis txhais. Koj yuav tsum teeb tsa lawv lub cev.
Kauj ruam 5
Tab sis ua ntej, koj yuav tsum tau tsim lub sijhawm ntsuas uas yuav siv los ntawm Simulation Waveform Editor thaum simulation. Hauv cov ntawv qhia zaub mov Kho kom raug-> Daim phiaj loj … teeb cov kauj ruam ntawm lub sijhawm daim phiaj. Thiab hauv cov ntawv qhia Kho kom raug -> Teem sijhawm Sijhawm … peb yuav qhia lub sijhawm ntawm kev sim.
Kauj Ruam 6
Cia peb teeb lub ntsuas ntawm lub moos mem tes. Hauv seem teb, xaiv lub cim xav tau los ntawm lub npe Npe los ntawm txhaj rau nws nrog sab laug nas khawm. Tam sim no mus rau cov ntawv qhia zaub mov: Kho kom raug-> Tus nqi -> Overwrite Moos … Hauv qhov qhib moos qhib qhov rai, teeb tsa lub sijhawm (Lub Sij Hawm), theem (Offset) thiab lub luag haujlwm (Duty cycle) ntawm lub moos mem tes.
Kauj Ruam 7
Peb teeb tsa Cov Ntaub Ntawv waveform. Xaiv nws thiab hauv cov ntawv qhia zaub mov: Kho -> Tus nqi xaiv cov hom tsim nyog. Kuv yuav xaiv cov kev hloov kho xws li Qhov Tsis Tseem Ceeb rau Qhov Tseem Ceeb … thiab teeb tsa nws cov ciaj ciam hauv lub qhov rais uas qhib.
Tom qab ntawv, khaws lub teeb liab nqis (Ctrl + S).
Kauj ruam 8
Tam sim no koj tuaj yeem khiav ua haujlwm simulation: Simulation-> Run Functional Simulation lossis los ntawm nias lub pob khawm ntawm cov ntawv qhia zaub mov. Quartus yuav simulate thiab muab cov txiaj ntsig ntawm qhov rais tshiab rau Simulation Waveform Editor.
Kauj Ruam 9
Hauv qhov rai uas qhib, koj tuaj yeem pom cov cim ntsuas tawm ntawm FPGA koob, uas tau txais los ntawm kev sim ua los ntawm Simulation Waveform Editor chaw tso hluav taws xob.