Cov txheej txheem:

8BIT COMPUTER: 8 Kauj Ruam
8BIT COMPUTER: 8 Kauj Ruam

Video: 8BIT COMPUTER: 8 Kauj Ruam

Video: 8BIT COMPUTER: 8 Kauj Ruam
Video: 8-bit computer update 2024, Hlis ntuj nqeg
Anonim
8 BIT COMPUTER
8 BIT COMPUTER

Txhawm rau ua qhov no, koj xav tau software uas hu ua LOGISIM, nws lub cev hnyav heev (6MB) digital simulator, mob yuav coj koj hla txhua kauj ruam thiab cov lus qhia koj yuav tsum ua raws kom tau txais qhov kawg thiab ntawm txoj kev peb yuav kawm paub yuav ua li cas khoos phis tawj tau tsim, los ntawm kev tsim hom tshiab kev coj ua lus ntawm peb tus kheej !!!.

Qhov kev tsim qauv no yog ua los ntawm Von Neumann architecture, qhov uas siv tib lub cim xeeb rau ob qho ntaub ntawv qhia thiab cov ntaub ntawv qhia, thiab BUS tib yam yog siv rau ob qho hloov pauv cov ntaub ntawv thiab hloov chaw nyob.

Kauj Ruam 1: Cia Pib Pib Ua Tus Qauv

8 lub khoos phis tawj tag nrho yog ib qho nyuaj rau nkag siab thiab ua, yog li cia faib nws rau hauv cov qauv sib txawv

ntawm txhua qhov qauv feem ntau yog sau npe, uas yog qhov tseem ceeb ntawm kev tsim cov xov tooj cua digital.

LOGISIM yog tus neeg siv zoo heev, nws twb muaj feem ntau ntawm cov qauv hauv qab no tau hais hauv nws lub tsev qiv ntawv builtin.

cov modules yog:

1. UA

2. Cov hom phiaj sau npe

3. BUS

4. RAM

5. Nco Chaw Sau Npe (MAR)

6. Qhia Ntawv Teev Npe (IR)

7. Counter

8. Zaub thiab tso npe

9. Tswj Logic

10. Tswj logic maub los

Kev sib tw yog ua cov qauv no los sib cuam tshuam nrog kev siv BUS ntawm ib qho tshwj xeeb ua ntej txiav txim siab lub sijhawm, tom qab ntawv teeb tsa cov lus qhia tuaj yeem ua tau, xws li cov lej, cov laj thawj.

Kauj Ruam 2: ALU (Chav Zej Zem thiab Cov Cuab Yeej)

ALU (Chav Ntsuas thiab Zauv)
ALU (Chav Ntsuas thiab Zauv)
ALU (Chav Ntsuas thiab Zauv)
ALU (Chav Ntsuas thiab Zauv)
ALU (Chav Ntsuas thiab Zauv)
ALU (Chav Ntsuas thiab Zauv)

Ua ntej peb yuav tsum ua lub tsev qiv ntawv tshwj xeeb hu ua ALU yog li peb tuaj yeem ntxiv nws hauv peb lub hauv paus tseem ceeb (ua tiav lub khoos phis tawj nrog txhua tus qauv).

Txhawm rau tsim lub tsev qiv ntawv, tsuas yog pib nrog ib qho kev sib txawv uas tau qhia hauv qib no siv cov builtin adder, rho tawm, sib npaug, faib, thiab MUX. txuag nws! thiab tag nrho cov ntawd !!!

yog li thaum koj xav tau ALU txhua yam koj yuav tsum tau ua yog mus rau qhov project> thauj lub tsev qiv ntawv> logisim lub tsev qiv ntawv nrhiav koj cov ntaub ntawv ALU.circ. ib zaug ua tiav nrog cov txheej txheem, nyem lub cim nyob rau sab laug sab saud kom ua lub cim rau ALU cov qauv.

koj yuav tsum ua raws cov theem no rau txhua tus qauv uas koj ua kom thaum kawg peb tuaj yeem siv lawv tau yooj yim.

ALU yog lub plawv ntawm txhua tus txheej txheem, raws li lub npe qhia tias nws ua txhua qhov kev ua lej thiab ua haujlwm.

peb ALU tuaj yeem ua ntxiv, rho tawm, sib npaug, faib (tuaj yeem hloov kho kom ua haujlwm muaj txiaj ntsig).

Hom kev ua haujlwm yog txiav txim siab los ntawm 4bit xaiv tus nqi raws li hauv qab no, 0101 rau ntxiv

0110 rau kev rho tawm

0111 rau kev sib npaug

1000 rau faib

cov qauv siv hauv ALU twb muaj nyob hauv LOGISIM builtin library.

Nco tseg: Qhov txiaj ntsig tsis tau khaws cia hauv ALU, yog li peb xav tau daim ntawv sau npe sab nraud

Kauj Ruam 3: Cov Hom Phiaj Rau Npe (Reg A, B, C, D, Display Reg)

Cov Hom Phiaj Rau Npe Sau Npe (Reg A, B, C, D, Display Reg)
Cov Hom Phiaj Rau Npe Sau Npe (Reg A, B, C, D, Display Reg)
Cov Hom Phiaj Rau Npe Sau Npe (Reg A, B, C, D, Display Reg)
Cov Hom Phiaj Rau Npe Sau Npe (Reg A, B, C, D, Display Reg)
Cov Hom Phiaj Rau Npe Sau Npe (Reg A, B, C, D, Display Reg)
Cov Hom Phiaj Rau Npe Sau Npe (Reg A, B, C, D, Display Reg)

Cov ntawv sau npe yog n tus lej ntawm flipflops khaws cia ib byte lossis cov ntaub ntawv ntau dua.

yog li sau npe los ntawm kev npaj 8 D-flipflops raws li qhia, thiab tseem ua lub cim rau nws.

Reg A thiab Reg B tau txuas ncaj qha rau ALU raws li ob qho kev ua haujlwm, tab sis Reg C, D thiab tso npe tso tawm yog cais.

Kauj ruam 4: RAM

RAM
RAM

Peb RAM yog qhov me me, tab sis nws ua lub luag haujlwm tseem ceeb heev txij li nws khaws cov ntaub ntawv Cov Ntaub Ntawv thiab Cov Lus Qhia, txij li nws tsuas yog 16 Bytes, peb yuav tsum khaws cov ntaub ntawv qhia (code) thaum pib thiab cov ntaub ntawv cov ntaub ntawv (hloov pauv) hauv so cov bytes.

LOGISIM muaj lub hauv paus thaiv rau RAM, yog li tsuas yog suav nrog nws.

RAM tuav cov ntaub ntawv, chaw nyob uas xav tau los ua haujlwm kev cai sib dhos.

Kauj Ruam 5: Qhia rau npe thiab Nco Chaw Sau Npe

Qhia Sau Npe thiab Nco Chaw Sau Npe
Qhia Sau Npe thiab Nco Chaw Sau Npe
Qhia Sau Npe thiab Nco Chaw Sau Npe
Qhia Sau Npe thiab Nco Chaw Sau Npe

Yeej, cov ntawv sau npe no ua haujlwm tsis zoo, tuav cov chaw nyob yav dhau los thiab cov ntaub ntawv hauv lawv, thiab Cov Lus Tawm thaum puas xav tau rau RAM.

Kauj Ruam 6: Moos Prescalar

Moos Prescalar
Moos Prescalar

Qhov qauv no yog qhov tsim nyog, qhov no faib lub moos nrawm nrog Prescaler, ua rau lub moos nrawm dua.

Kauj Ruam 7: Tswj Logic, ROM

Tswj Logic, ROM
Tswj Logic, ROM
Tswj Logic, ROM
Tswj Logic, ROM

Thiab qhov tseem ceeb tshaj plaws, Tswj Logic, thiab ROM, ROM ntawm no yog qhov hloov pauv rau qhov nyuaj-xaim cov laj thawj ntawm kev tswj cov laj thawj.

Thiab tus qauv nyob ib sab ntawm nws yog tus neeg tsim kev cai tsim rau ROM nkaus xwb rau cov qauv no.

Kauj Ruam 8: Zaub

Zaub
Zaub

Nov yog qhov tso tawm yuav tso tawm kom pom, thiab qhov txiaj ntsig kuj tseem tuaj yeem khaws cia rau hauv-tso npe.

Tau txais cov ntaub ntawv tsim nyog los ntawm NO.

Pom zoo: