Cov txheej txheem:

CPE 133 Txoj Haujlwm Kawg Kawg Zauv rau Binary: 5 Kauj Ruam
CPE 133 Txoj Haujlwm Kawg Kawg Zauv rau Binary: 5 Kauj Ruam

Video: CPE 133 Txoj Haujlwm Kawg Kawg Zauv rau Binary: 5 Kauj Ruam

Video: CPE 133 Txoj Haujlwm Kawg Kawg Zauv rau Binary: 5 Kauj Ruam
Video: [ LIVESTREAM ] Giới Thiệu sản phảm CPE 610/710 2024, Hlis ntuj nqeg
Anonim
CPE 133 Qhov Haujlwm Zaum Kawg Zauv rau Binary
CPE 133 Qhov Haujlwm Zaum Kawg Zauv rau Binary

Cov lej Binary yog ib qho ntawm thawj qhov uas tuaj rau hauv siab thaum xav txog cov laj thawj digital. Txawm li cas los xij, Tus lej Binary tuaj yeem yog lub tswv yim nyuaj rau cov tshiab rau nws.

Txoj haujlwm no yuav pab cov uas yog ob qho tshiab thiab tau ntsib nrog tus lej zauv tus tswv los hloov cov lej zauv. Los ntawm kev tsim cov game peb yuav sim cov neeg siv ntawm lawv txoj kev hloov pauv. Qhov kev ua si no yuav ua tiav ntawm Basys3 Board thiab programmed hauv Verilog.

Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau

Cov ntaub ntawv hauv qab no xav tau los ua qhov Decimal to Binary Conversion Game:

  • Xilinx Vivado Tsim Suite Software
  • Digilent Basys3 FPGA Board
  • USB rau Micro USB Cable

Kauj Ruam 2: Teeb LFSR (Tawm Tswv Yim Tawm Tawm Hloov Sau Npe)

Teeb LFSR (Tawm Tswv Yim Tawm Tawm Hloov Sau Npe)
Teeb LFSR (Tawm Tswv Yim Tawm Tawm Hloov Sau Npe)
Teeb LFSR (Tawm Tswv Yim Tawm Tawm Hloov Sau Npe)
Teeb LFSR (Tawm Tswv Yim Tawm Tawm Hloov Sau Npe)

LFSR (Kev Tawm Tswv Yim Tawm Tawm Hloov Sau Npe) yog tus qauv siv los tsim cov lej "random".

LFSR tsis yog qhov ua piv txwv tas li vim nws tsim cov lej pseudo-random uas yog txheej txheem ntawm kev tsim cov lej uas tshwm sim tsis xwm yeem tab sis tsis yog.

LFSR yog daim ntawv teev npe hloov pauv uas nws cov tswv yim me ntsis yog qhov ua haujlwm ntawm nws lub xeev dhau los, uas txhais tau tias LFSR yuav mus los ntawm cov lej teev tseg. Tshwj xeeb rau qhov kev ua si no, LFSR tsuas yog siv 8 qhov me me los txwv tus lej zauv uas nws tuaj yeem tsim tau rau 255.

Khawm L (btnL) yog siv los rov pib tus lej ntawm LFSR.

Qhov LFSR module no tsis tau tsim los ntawm cov neeg tsim cov game no. LFSR module tau tsim los ntawm Carleton University Professor, John Knight. Qhov txuas rau nws tus qauv muaj nyob hauv qab no.

www.doe.carleton.ca/~jknight/97.478/97.478_…

Kauj Ruam 3: Teeb tsa Lub Xya Segment Zaub

Teeb tsa Lub Xya Segment Zaub
Teeb tsa Lub Xya Segment Zaub

Xya-Segment Zaub tau siv ntawm Basys3 Board thiab ntawm ntau lwm yam khoom siv kho vajtse los tso saib cov lej lej.

Xya-Segment Display module uas tau siv hauv qhov kev ua si no hloov pauv tus lej binary rau hauv tus lej lej thiab qhia nws ua tus lej zauv.

Los ntawm kev siv qhov kev sib tham yav dhau los LFSR, tus lej tsim tawm tsis raug yuav raug tso tawm mus rau Xya-Segment Zaub.

Xya-Segment Display module tsis tau tsim los ntawm cov neeg tsim cov game no. Xya-Segment Display module tau muab los ntawm California Polytechnic State University Professor, Joseph Callenes-Sloan. Cov pdf rau tus qauv yog txuas hauv qab no.

Kauj Ruam 4: Tsim Game Module

Tsim Game Module
Tsim Game Module
Tsim Game Module
Tsim Game Module
Tsim Game Module
Tsim Game Module
Tsim Game Module
Tsim Game Module

Tsim Game (lub ntsiab) Module.

Cov qauv no yuav siv LFSR module los tsim tus lej tsis raug thiab tom qab ntawd tso nws mus rau Xya-Segment Zaub.

Tus qauv ntawd siv ib txwm thaiv uas rov pib dua tus lej random. Qhov no ua haujlwm ntawm qhov zoo ntawm khawm R (btnR), uas txhais tau tias nws tsuas yog ua haujlwm thaum khawm R tau raug nias.

Qhov thib ob ib txwm ua haujlwm ntawm qhov zoo ntawm lub moos (clk). Yog Khawm C (btnC) raug nias qhov no yuav tshawb xyuas yog tias tus lej ntawm Xya-Segment Display zoo ib yam li tus lej nkag los ntawm cov hloov (sw). Qhov thaiv no yuav tsa tus chij (teeb tsa tus chij sau npe (chij) rau 1) thiab hloov xov xov Val xaim raws li yog tus neeg siv tau yeej lossis poob.

Peb Ib txwm thaiv tseem ua haujlwm ntawm qhov zoo ntawm lub moos. Yog tias tus chij tau tsa nws yuav teeb ssegInputVal rau xov messageVal ntawm Xya-Segment Zaub. Yog tias tus chij tsis tau tsa nws yuav txuas ntxiv mus rau tus lej random (randomVal).

Kauj Ruam 5: Ua Si Game

Ua Si Game!
Ua Si Game!
Ua Si Game!
Ua Si Game!
Ua Si Game!
Ua Si Game!

Cov lus qhia:

  • Tus neeg siv yuav nias khawm R los ua qhov kev ua si tshiab, lossis hloov tus lej ntawm Xya-Segment Zaub.
  • Tus neeg siv yuav tig thawj 8 qhov hloov pauv nce (1) lossis nqis (0) txhawm rau nkag qhov sawv cev tus lej binary.
  • Khawm C yuav raug siv los tshuaj xyuas yog tias tus neeg siv yeej lossis poob.
  • Yog tias Tus Neeg Siv Yeej '111' yuav raug nthuav tawm ntawm Xya-Segment Display.
  • Yog tias Tus Neeg Siv poob '0' yuav tshwm rau ntawm Xya-Segment Display.
  • Txhawm rau pib qhov kev ua si tshiab khawm R tuaj yeem nias txhua lub sijhawm.

Pom zoo: