Sie sind auf Seite 1von 91

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Mucluc CHONG Done Gidi Thiéu Vé Phan

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Mucluc CHONG Done Gidi Thiéu Vé Phan
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Mucluc CHONG Done Gidi Thiéu Vé Phan

Mucluc

CHONG Done Gidi Thiéu Vé Phan MO@M L1. Phan Mem QUATtUS TT 1.2. SOPC
CHONG Done
Gidi Thiéu Vé Phan MO@M
L1. Phan Mem QUATtUS TT
1.2.
SOPC
scsscssssssssscssssossssesssssssesscnssesscesssssesecnssecsssesscnecessoeucooescsssvssceorscsseesasesess
11
1.2.1
Khdi nidm vé SOPCS
sccsscssssssscssssssssssvsssssssssssessscssssssssssssssssessescesessessesecssessasssssssesseeees
11
1.2.2
Thiét Ké SOPC Builder Ditng MG Verilog
s.cccscsssssssssssssssssssssssssssssssesssssssssesasssssesees
15
1.3 Phan Mém NIOSIL IDE
ccssssssssssssssecsssscsesssssssvssssessssscsecsssscessssevsessecsesscsessvsessessossssecses
21
1.3.1
1.3.2
1.3.3.
Téng quan cdc tinh nding cia bG vi xiv lf NIOS Ls.cscssssssssssssssscssssssscssssssacsssscsscssssee 22
Ca Tritc Thanh Gii vesssssscsssssssssssssssssscscsscsasscsscscssssscscssssssessssessssscessscssesssacsesscssesessees 23
Truy Xudt BG NAG Va Thiet By W/O.ssccsssesssscsssssssssssssssssssssssssssssssessscssssssacscsssacssesees 26
T.3.4, Did Chicccssssssrsscsssssscesssssssscsssscsscesscssssesscecssssesousscossecsssusssasasousscessussssnsocsesseesscossseseeesens 27
T.3.5, Tip L@nh wesssssscsssssssesssssssscssssesscesscssssessecssssesousseessecsssusssassasosucecsusessnsecseesseesasoesseseeesecs 28
1.4 Board DEZ
cccccssscccccscccsssssesssscsssscssssscessssceeeeseeeeneesssssssssscessssceoeeseoecssessesssssssscesssscosessoooees
29
L.4.1. Tinh nang cla Mgch DE2 w
csssrsessrsersrserssescessssesessasesesssescessssscssssssseesasseesseees
29
1.4.2. ThONG 86 KY thuGt
1.4.3. Nhitng Vi Du Ve Nhieng tong Dung Cao Cap vesssssssssssssssssssssssssssssssscscssssacscsacsscssssees 34
Chung ID
ccesccceccceeccecccecccccececeeeeeeeseceseesecaeeaaeauseaeasaesaeesssseseeensess36
Audio Codec W873 1/Liuw.wee cceccccssecccsscecsscecccceccccscceessceeessceeesceeseseess36
IL.1 Gidi Thigu Ve AUDIO CODEC W8731/L
ssssssssssssssssssssssssessssessessssvsessecsvsscsecsossseessoes
36
T.1.1 Duong Dain Line [nputccccccccccssscccsssscssssssssssssscsssssssessesssscssssssssscesesscssssssssssssessssesssees 38
TT 1.2 Ng6 V@o0 Microphone
ccccsscccccsssssccsssssrsccccsssssscccccssssccccsssssscssscssssccssssssssccsssssssacesessees
4]
HI.1.3 MICROPHONEBIAS iscscsssscsssssssssssssscsssssscsscscscssssesscsssssscsacscssesssesacsessesesseeasscaacessesess 41
TI.1.4 BG L9C ADC vissssssssssssssssscscssssssssssscssssesscscsssscscssssesscsssssscsasscssesscesassacsesesassessesssesaceassesess 41
TT,1.5 BG LQC DAC vasssccsssssssccsssssssccsssscsssscsssssssssssessscesssssessscccssssssecscessscsccsssssossacssssssssasscessees 43
TT,1.6 Litte NGO Ra, iscsccsccssssccsssssrsccsssscsssscssssssssscscessssesssssessssccssssssenscessssscessssssssacssssssssasscessees 44
H1.1.7HEADPHONE AMPLIFIER\ussssssssssssssssvssssvsssscesssssscssssssesssseesssssesessssersossseoesseasesesass 45
11.2
Cdc Ché DO Hoat DONg
scccscssscsssssssssssscsesscsssesessssssessecsssvsessesscsssscessesscssscesssssosessceoees
47
TI.2.1 SYPASS MODE vissssssssvsssssssssssssssscssssssssssssssescssssesssssssssassessscesssessssansssessssassesssesassaseesees 47
HI.2.2 SIDETONE MODE.uesssssssssssssssssssssssssscscsssscssssssesscsssssscsasscssesssesscsacsesesasssssesssesasessesess 49
11.3
Hoat Dong Cita Thiet Bj
cccssssscsssscessssessesscessssecsssscsecsssecsessssesessessesesseseessssecsssscsecsees
50
TI.3.1 Cai DGt Lai Thiet Bj .ccsssesscsssssssssssssscsssssssssssessssssssssssssssssssesssscesesssesesecssesseesseessseeseeees 50
T1.3.2 Lege D6 CLOCKINGwisessssssssssssssssssssssssssessssessscssssssssssssssscesssscesessscseseessesssaussessssesseeees 50
HT.3.3 LOT XUNG CLOCK, wissecssscssssscscssscscecscscssscscssssscsssssessssscsnsnscssssscssssscssssscsssssssssssessensess 51
IT,3.4 May Tao Dao DOng CRYSTAL. wcsccccssssccccsssssrscccssssssccccssssscccscssssccssssssssccsssssssacsssssees 51

TI.3.5 CLOCKOUTvesesssssssssssssscscsssscsssssscsscssssscssscscssssesscssssssssaescssesssesassacsesesavsassesasesaceassesecs 52 I1.3.6 Gido Dig PHAN MEM. cescsccssssssssssssssssscscsscsasscsscscssssscsssssssssssssssessscsesscssssssacsesscssessssees 53

T1.3.7 ChE DG Néing Lung scccccccsscsscsssscssssssscsessssecsscsssessssssssssscesssscesesseseeseessvessaesseessseeseeees
T1.3.7 ChE DG Néing Lung
scccccccsscsscsssscssssssscsessssecsscsssessssssssssscesssscesesseseeseessvessaesseessseeseeees
55
I1.3.8 Bén D6 Thatth Ghii.sssssssssssssssrssssssssssesvsscessesesssesesscesasacsensacseasscsessssesussssssesessseseeones 59
11.3.9
Nét Dic Trueng Cita Dau Loc Kp ThuGit S6 .i.cccsccsssssssssssssssssscsssssssssssesssssesscesessssseeees 59
1.3.10 Sw Hoat Déng O Ché D6 Master/Slave
cssccccsccssscssssssssssssssssssssssssssesssssssseessvssssesees
61
IL.4 MG té tong qudt vé SD CARD wisscssssssscsscssssssssscsscscssssscscssssssesssssessssssessscssssssacsessessessssees 62
UD,4.1 Titth NG1g
ccssccccssscssccccsssscsccssssssscccssscssccsscssesscccsssssssccccssssssccscssscsacsecsssesacesesscsasescssees
63
TH4.2 Ung dung visccrscsscsrsssssscssssssssssssscsscsssscssscsssssscssscsssssscsssscessssecssscsesscecsssesensvsseceseessesseseess 63
1.4.3
M6 TG Port Cita SD Cardseccssscsscssssvsssscsssssscsssscssessssssssessscssseesssscsssssessssseesssossesseesens 63
IL.5 Dinh Dang FAT
ccssssssssscssssssssssssssessecessesscessecsssssssssscessecsssvsscessecsesscsesscscsesscesssssosssncesees
64
11.6
Khai Niém Ve Tap Tin Wave
ccccccsssssssssssssssssssssssssssssecssssessesscsssssessesscsvsscesssssosvssceoees
68
68 SVTH: NGUYEN MINH HIEU -HUYNH CONG PHU Trang 1
68 SVTH: NGUYEN MINH HIEU -HUYNH CONG PHU Trang 1
68 SVTH: NGUYEN MINH HIEU -HUYNH CONG PHU Trang 1

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Chuong 3 Hé Thong Tong Quat oo

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Chuong 3 Hé Thong Tong Quat oo
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Chuong 3 Hé Thong Tong Quat oo
Chuong 3 Hé Thong Tong Quat oo IIL.1 Thiét KE M6 Hinh SD Music Player,
Chuong 3 Hé Thong Tong Quat oo
IIL.1 Thiét KE M6 Hinh SD Music Player,
s.ccccsssssssssssssssssssssssssesscsssscessesscsvsscesssssosessceoees
70
TIL.2 Chirong Trinh Demo
sssssssrsssssseresseseesssssevsssseesssssseesssnssesnsensessecsnsscsscsvssssessoensseesess
71
TIL.2.1
Cac Dinh Nghia Thiet LGp
ccscccccscssssccccsssssssccssssssccccssssssccscssscssccsesssesaccesssessscessssees
71
HIT,2.2
Cac Chirong Trinh Con Va Cac Ham Con
ccsccccccsccccsssccssccscccscccccssccccscscceessccceeeees
73
TIT,2.3 Chivong Tritth CHINN,
cscccsscccsssssscsssssccsssscccessssccssscscscsssscsssssscccsssscssssessscsssssessscssecees
85
Tai Hi@u ham Kha00000. cccccccesssscessesssesssseaaasanaeeaeeceeeeeeeeeeeeees89
PRU LUC 0c
ccccceccceccceccceeeeeeeeeeeeeseseseaaeauenaaeaaaaaaasaaeseessseesesessees90
SVTH: NGUYEN MINH HIEU -HUYNH CONG PHU Trang 2
SVTH: NGUYEN MINH HIEU -HUYNH CONG PHU Trang 2
SVTH: NGUYEN MINH HIEU -HUYNH CONG PHU Trang 2

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN a Chuong I Giéi Thigu Vé Phan

GVHD :Th.S HUYNH HOU THUAN

a

Chuong I

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN a Chuong I Giéi Thigu Vé Phan

Giéi Thigu Vé Phan Mém

:Th.S HUYNH HOU THUAN a Chuong I Giéi Thigu Vé Phan Mém L1. Phin Mém Quartus
:Th.S HUYNH HOU THUAN a Chuong I Giéi Thigu Vé Phan Mém L1. Phin Mém Quartus

L1. Phin Mém Quartus IT

Chuong I Giéi Thigu Vé Phan Mém L1. Phin Mém Quartus IT Héthéng Quartus II bao
Héthéng Quartus II bao gdm day du tat ca céng thirc théng thudng dé mé
Héthéng Quartus II bao gdm day du tat ca céng thirc théng thudng dé mé ta
yéu cau mach vao trong mét hé théng CAD, Ngwéi ding cé thé chi dinh yéu cau mach
vao trong ngén ngit mé ta phan cimg Verilog hoic VHDL. Vacai khac 1a dya trén ndi

dung yéu cau mach trong mau cia mét so dé biéu dé. Bude cudi cing trong qué trinh

cia mét so dé biéu dé. Bude cudi cing trong qué trinh thiét ké can phai
cia mét so dé biéu dé. Bude cudi cing trong qué trinh thiét ké can phai

thiét ké can phai cau hinh mach thiét ké trong thiét bj Nios II that.

phai cau hinh mach thiét ké trong thiét bj Nios II that. Méi machlogic, hay mach
phai cau hinh mach thiét ké trong thiét bj Nios II that. Méi machlogic, hay mach

Méi machlogic, hay mach phy, thiét ké bang phan mém Quartus II duge goi la mét

phy, thiét ké bang phan mém Quartus II duge goi la mét Project. Phan mém lam
phy, thiét ké bang phan mém Quartus II duge goi la mét Project. Phan mém lam

Project. Phan mém lam viée trén mét project tai m$t thoi diém va gitt théng tin cho

trén mét project tai m$t thoi diém va gitt théng tin cho project trong mét thu
trén mét project tai m$t thoi diém va gitt théng tin cho project trong mét thu

project trong mét thu muctrén file hé thang. Dé bat ddu thiét ké mét mach logic mdi,

file hé thang. Dé bat ddu thiét ké mét mach logic mdi, trude tién phai tao
file hé thang. Dé bat ddu thiét ké mét mach logic mdi, trude tién phai tao
file hé thang. Dé bat ddu thiét ké mét mach logic mdi, trude tién phai tao
file hé thang. Dé bat ddu thiét ké mét mach logic mdi, trude tién phai tao
file hé thang. Dé bat ddu thiét ké mét mach logic mdi, trude tién phai tao

trude tién phai tao mét thu myc dé chita cdcfile cha nd.

trude tién phai tao mét thu myc dé chita cdcfile cha nd. rey Ta Ta) File
trude tién phai tao mét thu myc dé chita cdcfile cha nd. rey Ta Ta) File
trude tién phai tao mét thu myc dé chita cdcfile cha nd. rey Ta Ta) File
rey Ta Ta) File Edit View Project Assignments Processing Tools Window Hel jo cele. oR
rey Ta Ta)
File Edit View
Project Assignments Processing Tools Window Hel
jo
cele. oR
7ee|o)> o> |»
ProjectNavigator
=|x|
Entity B Compilation Hierarchy)
fe QUARTUS
II
Version 5.0
Status
i
Module.
[Progress% |Tine &
tp: fw. altera.com
EI 1
E)\ Spstem{Frocessng J EntalnfoJ Ine,Waming
JL GittealWaring J Eror [
2 Messe:
&| $| [Gen
T=]
Lssate
For Help, press FL
ea
Tale
[
[
Z|

Hinh1.1.1, Hién thi chinh QuartusII.

Help, press FL ea Tale [ [ Z| Hinh1.1.1, Hién thi chinh QuartusII. SVTH: NGUYEN MINH
Help, press FL ea Tale [ [ Z| Hinh1.1.1, Hién thi chinh QuartusII. SVTH: NGUYEN MINH
Help, press FL ea Tale [ [ Z| Hinh1.1.1, Hién thi chinh QuartusII. SVTH: NGUYEN MINH
Help, press FL ea Tale [ [ Z| Hinh1.1.1, Hién thi chinh QuartusII. SVTH: NGUYEN MINH

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee Hauhét cdc lénh cung cap boi

GVHD :Th.S HUYNH HOU THUAN

ee

Hauhét cdc lénh cung cap boi Quartus II cé thé duge truy xpat bing cach ding

cap boi Quartus II cé thé duge truy xpat bing cach ding métthiét lap cua menu
cap boi Quartus II cé thé duge truy xpat bing cach ding métthiét lap cua menu

métthiét lap cua menu duge xdc dinh dudi dang thanh tiéu dé.

lap cua menu duge xdc dinh dudi dang thanh tiéu dé. File Edit View Project Assignment
lap cua menu duge xdc dinh dudi dang thanh tiéu dé. File Edit View Project Assignment
File Edit View Project Assignment D dew culn (& Open creo lose Cnlere New Project
File
Edit
View
Project Assignment
D dew
culn
(& Open
creo
lose
Cnlere
New Project Wizard
i Open Project
crl+J
Convert MAX+PLUS II Project
save Project
Glase Project
l\save
nl+s
Save AS,
Save
GUITEK: Report Sesion As
file Properties.
Create (Update
¥
Export
Convert Programming Files
MPage
Setup
[E& Print Preview
= Print,
Cale
Recent Ales
Yi
Recent Projects
¥
Exit
AlT+F4
Hinh 1.1.2. vi du file menu
Hinh 1.1.2. vi du file menu

Débat dau mét thiét ké moi trudc tién phai dinh nghia métthiét ké project mdi.

moi trudc tién phai dinh nghia métthiét ké project mdi. Tao mét project méi nhu sau:
moi trudc tién phai dinh nghia métthiét ké project mdi. Tao mét project méi nhu sau:
moi trudc tién phai dinh nghia métthiét ké project mdi. Tao mét project méi nhu sau:
moi trudc tién phai dinh nghia métthiét ké project mdi. Tao mét project méi nhu sau:

Tao mét project méi nhu sau:

métthiét ké project mdi. Tao mét project méi nhu sau: > Chon File > New Project

>

Chon File > New Project Wizard dé dugc cita sé nhv hinh 1.1.3. Co thé

New Project Wizard dé dugc cita sé nhv hinh 1.1.3. Co thé bé qua cita sé
New Project Wizard dé dugc cita sé nhv hinh 1.1.3. Co thé bé qua cita sé
New Project Wizard dé dugc cita sé nhv hinh 1.1.3. Co thé bé qua cita sé
New Project Wizard dé dugc cita sé nhv hinh 1.1.3. Co thé bé qua cita sé

bé qua cita sé nay trong project sau bang céch dinh d4u check vao hop

bé qua cita sé nay trong project sau bang céch dinh d4u check vao hop SVTH:
bé qua cita sé nay trong project sau bang céch dinh d4u check vao hop SVTH:
bé qua cita sé nay trong project sau bang céch dinh d4u check vao hop SVTH:
bé qua cita sé nay trong project sau bang céch dinh d4u check vao hop SVTH:

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN a thoai Don t show methis introduction

GVHD :Th.S HUYNH HOU THUAN

a

thoai Don t show methis introduction again. Nhan next sé thay cura sé

show methis introduction again. Nhan next sé thay cura sé ohhinh 1.1.4. [ere re eee oad
show methis introduction again. Nhan next sé thay cura sé ohhinh 1.1.4. [ere re eee oad

ohhinh 1.1.4.

again. Nhan next sé thay cura sé ohhinh 1.1.4. [ere re eee oad The New ProjectWizard
[ere re eee oad The New ProjectWizard helpsyou create anew projestand prelminay project settings, including
[ere re eee oad
The New ProjectWizard helpsyou create anew projestand prelminay project settings,
including thefollwing:
@ Project name and directo
@ Name of the toplevel design entity
@
# Target device family and device
Projecttiles and libranes
# EDAtool settings
You can change the cetlings for an existing project and specify additional projectawide
settings with theSettings commend [Assignments menu, You can use the various
pages of the Seltings dialog box to add functionality to the project.
[7 Don't show me this introduction again
Hinh 1.1.3, Thao tac thye hién bing Wizard Tasks
Hinh 1.1.3, Thao tac thye hién bing Wizard Tasks
this introduction again Hinh 1.1.3, Thao tac thye hién bing Wizard Tasks SVTH: NGUYEN MINH HIEU
this introduction again Hinh 1.1.3, Thao tac thye hién bing Wizard Tasks SVTH: NGUYEN MINH HIEU
this introduction again Hinh 1.1.3, Thao tac thye hién bing Wizard Tasks SVTH: NGUYEN MINH HIEU

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee New Project Wizard \what is the

GVHD :Th.S HUYNH HOU THUAN

ee

New Project Wizard \what is the working drectory forthis projec!? [D ntrotutail sl \whatis the
New Project Wizard
\what is the working drectory forthis projec!?
[D ntrotutail
sl
\whatis the name of this project?
[ich
sl
What is the name of the top-level design ertity fer this project? This name is case senstive
and must exactly match the entiy name in the design file
[light
we
UseExisiing Project Settings
s Back
Next>
Finish
Cancel

>

Hinh 1.1.4. Tao mt project mdi.

Finish Cancel > Hinh 1.1.4. Tao mt project mdi. Nhin next, Tir day chung ta da

Nhin next, Tir day chung ta da tao ra m6t thu mycintrotutorial hay chua, phan

chung ta da tao ra m6t thu mycintrotutorial hay chua, phan mém Quartus II hién ra
chung ta da tao ra m6t thu mycintrotutorial hay chua, phan mém Quartus II hién ra
chung ta da tao ra m6t thu mycintrotutorial hay chua, phan mém Quartus II hién ra

mém Quartus II hién ra mOt hp trong hinh 1.1.5 héin6 sé tao ra m6t thu myc

ra mOt hp trong hinh 1.1.5 héin6 sé tao ra m6t thu myc mong muén. click
ra mOt hp trong hinh 1.1.5 héin6 sé tao ra m6t thu myc mong muén. click
mong muén. click Yes, hién ra cra sé trong hinh 1.1.6
mong muén. click Yes, hién ra cra sé trong hinh 1.1.6
ene EI ay Directory "D: Antrotutonal" does mot exist. De ycu want to create Ite
ene
EI
ay Directory "D: Antrotutonal" does mot exist. De ycu want to create Ite
Yes
No
|

Hinh 1.1.5, Phan mém Quartus II sé tao ra mét thu muc cho project

| Hinh 1.1.5, Phan mém Quartus II sé tao ra mét thu muc cho project SVTH:
| Hinh 1.1.5, Phan mém Quartus II sé tao ra mét thu muc cho project SVTH:
| Hinh 1.1.5, Phan mém Quartus II sé tao ra mét thu muc cho project SVTH:
| Hinh 1.1.5, Phan mém Quartus II sé tao ra mét thu muc cho project SVTH:
| Hinh 1.1.5, Phan mém Quartus II sé tao ra mét thu muc cho project SVTH:

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee New Project Wizard: Add Files [page

GVHD :Th.S HUYNH HOU THUAN

ee

New Project Wizard: Add Files [page 2 of 5] Select the desiqn files you want
New Project Wizard: Add Files [page 2 of 5]
Select the desiqn files you want to include in the project. Click Acd All to add sll design files
in the project directary to the project. Note: you can always add design files ia the project
later
File name:
Bi
File name
Type
Add All
ao
Basie
as
[tein
Specty the path names of any non-default fbraries
UserLibraries
< Beck
Finish
Cancel

>

Hinh1.1.6. Wizard cé thé bao gémfile thiét ké ly thuyét.

Wizard cé thé bao gémfile thiét ké ly thuyét. Néu khongcé file nao tin tai, Click

Néu khongcé file nao tin tai, Click next, sé thdy cira sé trong hinh 7.

khongcé file nao tin tai, Click next, sé thdy cira sé trong hinh 7. SVTH: NGUYEN
khongcé file nao tin tai, Click next, sé thdy cira sé trong hinh 7. SVTH: NGUYEN
khongcé file nao tin tai, Click next, sé thdy cira sé trong hinh 7. SVTH: NGUYEN
khongcé file nao tin tai, Click next, sé thdy cira sé trong hinh 7. SVTH: NGUYEN
khongcé file nao tin tai, Click next, sé thdy cira sé trong hinh 7. SVTH: NGUYEN

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN New Project Wizard: Family & Device Settings

GVHD :Th.S HUYNH HOU THUAN

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN New Project Wizard: Family & Device Settings
pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN New Project Wizard: Family & Device Settings
New Project Wizard: Family & Device Settings [p Select the family and device you wantto
New Project Wizard: Family & Device Settings [p
Select the family and device you wantto taiget for compilation.
Family:
CycloneIl
2
Target device
Auto device selected by the Fitler from the Available devices list
Specific device selected in Available devices' list
Available devices:
Filters
EP2C20F256C6
Package:
Any
r
Pin count
Ary
2
Speed grade:
[Ary
*
EP2C20F4848
Core voltage:
1.2
EP2C35F4S4C6
I ShowAdvenced Devices
EP2CSOFIS4CE (Advanced)
Finish
Cancel
|

>

Hinh 1.1.7. Chon mét hothiét bi va mét thiét bi cu thé

Hinh 1.1.7. Chon mét hothiét bi va mét thiét bi cu thé Chingta cd kiéu thiét
Hinh 1.1.7. Chon mét hothiét bi va mét thiét bi cu thé Chingta cd kiéu thiét

Chingta cd kiéu thiét bj cy thé, ma mach dugc thiét ké s duge thyc thi day du. Chon Cyclone II lam ho thiét bi myc tiéu. Ching ta cé thé cho phép phan mém

thiét bi myc tiéu. Ching ta cé thé cho phép phan mém Quartus II chon hothiét
thiét bi myc tiéu. Ching ta cé thé cho phép phan mém Quartus II chon hothiét
thiét bi myc tiéu. Ching ta cé thé cho phép phan mém Quartus II chon hothiét
thiét bi myc tiéu. Ching ta cé thé cho phép phan mém Quartus II chon hothiét
thiét bi myc tiéu. Ching ta cé thé cho phép phan mém Quartus II chon hothiét
thiét bi myc tiéu. Ching ta cé thé cho phép phan mém Quartus II chon hothiét
thiét bi myc tiéu. Ching ta cé thé cho phép phan mém Quartus II chon hothiét

Quartus II chon hothiét bj cu thé, hay ching ta cé thé chon thiét bj r5 rang. Tir

cu thé, hay ching ta cé thé chon thiét bj r5 rang. Tir danh sich thiét
cu thé, hay ching ta cé thé chon thiét bj r5 rang. Tir danh sich thiét
cu thé, hay ching ta cé thé chon thiét bj r5 rang. Tir danh sich thiét
cu thé, hay ching ta cé thé chon thiét bj r5 rang. Tir danh sich thiét

danh sich thiét bi cho phép chon thiét bi EP2C35F672C6, ma duge SOPC

bi cho phép chon thiét bi EP2C35F672C6, ma duge SOPC Builder ding trén board DE2. nhdn
bi cho phép chon thiét bi EP2C35F672C6, ma duge SOPC Builder ding trén board DE2. nhdn

Builder ding trén board DE2. nhdn next mé cita sé trong hinh 1.1.8.

Builder ding trén board DE2. nhdn next mé cita sé trong hinh 1.1.8. SVTH: NGUYEN MINH
Builder ding trén board DE2. nhdn next mé cita sé trong hinh 1.1.8. SVTH: NGUYEN MINH
Builder ding trén board DE2. nhdn next mé cita sé trong hinh 1.1.8. SVTH: NGUYEN MINH
Builder ding trén board DE2. nhdn next mé cita sé trong hinh 1.1.8. SVTH: NGUYEN MINH
Builder ding trén board DE2. nhdn next mé cita sé trong hinh 1.1.8. SVTH: NGUYEN MINH

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN a New Project Wizard: EDA Tool Settings

GVHD :Th.S HUYNH HOU THUAN

a

New Project Wizard: EDA Tool Settings [page 4 of Specify the other EDA tools -
New Project Wizard: EDA Tool Settings [page 4 of
Specify the other EDA tools - in additionto bre Quartus Il software -- used with the project
[7 EDA designenty #
nr
synthesis tool:
r
[~ EDA, simulation tool:
[EDA timing snabsistoct
[SSC
< Back
Finish
Cancel
Hinh 1.1.8. Céng cu EDA khac
Hinh 1.1.8. Céng cu EDA khac

> Nauwdi ding co thé chi dinh bat ky céng cy EDA nao. Phd bién la ding phan

chi dinh bat ky céng cy EDA nao. Phd bién la ding phan mém CAD cho
chi dinh bat ky céng cy EDA nao. Phd bién la ding phan mém CAD cho
chi dinh bat ky céng cy EDA nao. Phd bién la ding phan mém CAD cho

mém CAD cho mach dién la cdc céng cy EDA. Thuat ngit nay duge dingtrong

dién la cdc céng cy EDA. Thuat ngit nay duge dingtrong théng béo Quartus II dé
dién la cdc céng cy EDA. Thuat ngit nay duge dingtrong théng béo Quartus II dé

théng béo Quartus II dé cap dén ba céng cy. tir day ching ta sé dia vao cdc

dé cap dén ba céng cy. tir day ching ta sé dia vao cdc céng cy
dé cap dén ba céng cy. tir day ching ta sé dia vao cdc céng cy
dé cap dén ba céng cy. tir day ching ta sé dia vao cdc céng cy
dé cap dén ba céng cy. tir day ching ta sé dia vao cdc céng cy
dé cap dén ba céng cy. tir day ching ta sé dia vao cdc céng cy

céng cy cla QuartusII, khéng chon céng cy nao khac.

cdc céng cy cla QuartusII, khéng chon céng cy nao khac. > Nhdn next. Tom tat
cdc céng cy cla QuartusII, khéng chon céng cy nao khac. > Nhdn next. Tom tat

> Nhdn next. Tom tat cha nhimg chon lya trén 1a xudt hign man hinh nhy hinh

tat cha nhimg chon lya trén 1a xudt hign man hinh nhy hinh 1.1.9. nhdn finish,

1.1.9. nhdn finish, tré vé cira sé chinh Quartus II, nhung véi light duge dinh nghta nhw project méitrong thanh tiéu dé nhw hinh 1.1.10

duge dinh nghta nhw project méitrong thanh tiéu dé nhw hinh 1.1.10 SVTH: NGUYEN MINH HIEU
duge dinh nghta nhw project méitrong thanh tiéu dé nhw hinh 1.1.10 SVTH: NGUYEN MINH HIEU
duge dinh nghta nhw project méitrong thanh tiéu dé nhw hinh 1.1.10 SVTH: NGUYEN MINH HIEU
duge dinh nghta nhw project méitrong thanh tiéu dé nhw hinh 1.1.10 SVTH: NGUYEN MINH HIEU
duge dinh nghta nhw project méitrong thanh tiéu dé nhw hinh 1.1.10 SVTH: NGUYEN MINH HIEU
duge dinh nghta nhw project méitrong thanh tiéu dé nhw hinh 1.1.10 SVTH: NGUYEN MINH HIEU
duge dinh nghta nhw project méitrong thanh tiéu dé nhw hinh 1.1.10 SVTH: NGUYEN MINH HIEU

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee d: Summary [page 5 of 5]

GVHD :Th.S HUYNH HOU THUAN

ee

d: Summary [page 5 of 5] \Wwhen youclick Finish, the project will be created with
d: Summary [page 5 of 5]
\Wwhen youclick Finish, the project will be created with the following settings:
Project directony
D:dintrotutonal
Project name:
light
Toprlewel design entity:
light
Number of files addect
Q
Number of user ibraries addec:
0
Device assignments
Family name
Cyclone il
Device:
EP2C35F672C6
EDAtools:
Design enty/suntresis:
<Mone>
Sirsulation:
<None>
Timing analysis:
<None>
< Back
Concel

Hinh 1.1.9, Tom tat cia viée cai dit project.

< Back Concel Hinh 1.1.9, Tom tat cia viée cai dit project. SVTH: NGUYEN MINH HIEU
< Back Concel Hinh 1.1.9, Tom tat cia viée cai dit project. SVTH: NGUYEN MINH HIEU
< Back Concel Hinh 1.1.9, Tom tat cia viée cai dit project. SVTH: NGUYEN MINH HIEU
< Back Concel Hinh 1.1.9, Tom tat cia viée cai dit project. SVTH: NGUYEN MINH HIEU

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN a QuartusII - D:/introtutorial/light - light [FileEditview

GVHD :Th.S HUYNH HOU THUAN

a

QuartusII - D:/introtutorial/light - light [FileEditview Project AssignmentsProcessingTools Window. Help [Oo oF ba |e
QuartusII - D:/introtutorial/light - light
[FileEditview Project AssignmentsProcessingTools Window. Help
[Oo oF ba |e
»
Aa
cae
HLS Dry me |r |o|B
Project Navigator =] xj
Enlly
(dp,CrowellEPUCaEFEVaCE|
ae
>light
© Aybicisichy EBFiee |g Design Units
rt a
At ee)
hitp-/Awwvr_altera com
t.
ProcessingAA Esra info A info }owanna A, Cnicalwenng Enon jf
Eze
2 Sil
For Halp, preos Et
[oie] ie
Hinh 1,1,10. Quartus I sau _khi project duge tao
|
|
|
of
es Lbs

BUILDER

1.2.1 Khai nigm vé SOPC:

tao | | | of es Lbs BUILDER 1.2.1 Khai nigm vé SOPC: System on Programmable

System on Programmable chip (SOC) la mét ¥ tuéng vé sv tich hgp tat ca moi

chip (SOC) la mét ¥ tuéng vé sv tich hgp tat ca moi thanh phan cia
chip (SOC) la mét ¥ tuéng vé sv tich hgp tat ca moi thanh phan cia

thanh phan cia mét hé théng vao mét mach tich hop (IC). Mach nay cé thé bao gm

théng vao mét mach tich hop (IC). Mach nay cé thé bao gm ca cdc chite
théng vao mét mach tich hop (IC). Mach nay cé thé bao gm ca cdc chite
ca cdc chite nang s6, trong ty, hodc ca hai- tat ca trén mét chip.
ca cdc chite nang s6, trong ty, hodc ca hai- tat ca trén mét chip. Ung dung dién hinh
cho ¥ tong nay1a cdc hé théng nhing. Cac SOC cé wu diém 1a gid thanh thdp va don
gian. Thiét bi logic kha trinh (PLD: Programmable logic device) 14 m@tthiét bi dug

tao ra tir cdc céng logic, cé kha nang lap trinh duge dé tao cdc img dung khdc nhau. Tir

kha nang lap trinh duge dé tao cdc img dung khdc nhau. Tir ¥ tong trén,
kha nang lap trinh duge dé tao cdc img dung khdc nhau. Tir ¥ tong trén,
kha nang lap trinh duge dé tao cdc img dung khdc nhau. Tir ¥ tong trén,

¥ tong trén, thudt ngit SOPC-system on programmable chip ra déi. Toan bé thiét ké

on programmable chip ra déi. Toan bé thiét ké hé théng sé dugc tao trén métthiét
on programmable chip ra déi. Toan bé thiét ké hé théng sé dugc tao trén métthiét
on programmable chip ra déi. Toan bé thiét ké hé théng sé dugc tao trén métthiét

hé théng sé dugc tao trén métthiét bi logic kha trinh (PLD), Linh vyc nay thudng img

métthiét bi logic kha trinh (PLD), Linh vyc nay thudng img dung dé thir nghiém cdc
métthiét bi logic kha trinh (PLD), Linh vyc nay thudng img dung dé thir nghiém cdc
métthiét bi logic kha trinh (PLD), Linh vyc nay thudng img dung dé thir nghiém cdc

dung dé thir nghiém cdc hé théng trudc khi ché tao cdc IC. Mét so dé vi dy vé hé

théng trudc khi ché tao cdc IC. Mét so dé vi dy vé hé théng SOPC
théng trudc khi ché tao cdc IC. Mét so dé vi dy vé hé théng SOPC
théng trudc khi ché tao cdc IC. Mét so dé vi dy vé hé théng SOPC
théng trudc khi ché tao cdc IC. Mét so dé vi dy vé hé théng SOPC
théng trudc khi ché tao cdc IC. Mét so dé vi dy vé hé théng SOPC

théng SOPC duge dugetrinh bay trong hinh 1.1.

Mét so dé vi dy vé hé théng SOPC duge dugetrinh bay trong hinh 1.1. SVTH:
Mét so dé vi dy vé hé théng SOPC duge dugetrinh bay trong hinh 1.1. SVTH:
Mét so dé vi dy vé hé théng SOPC duge dugetrinh bay trong hinh 1.1. SVTH:
Mét so dé vi dy vé hé théng SOPC duge dugetrinh bay trong hinh 1.1. SVTH:

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee System Module User Logic PCLctrl Area

GVHD :Th.S HUYNH HOU THUAN

ee

System Module User Logic PCLctrl Area je PCI » < PCLaddrrm Bridge SM PIO PC|_data
System Module
User
Logic
PCLctrl
Area
je
PCI
»
< PCLaddrrm Bridge SM
PIO
PC|_data
3
:
a
Signals to
[Data a
Signals to
Off-Chip
\
Nios
c
Custom
~ On-Chip
Devices
~
CPU
instr]
§
[7] Peripheral
[User Logic
és
LI
Off-Chip
Memory
Custom
Peripheral [~
Altera PLD
4

Hinh1.2.1: So dé vi du vé hé thong SOPC tich hop trén PLD cia Altera

dé vi du vé hé thong SOPC tich hop trén PLD cia Altera Céc thu vién
dé vi du vé hé thong SOPC tich hop trén PLD cia Altera Céc thu vién
dé vi du vé hé thong SOPC tich hop trén PLD cia Altera Céc thu vién
dé vi du vé hé thong SOPC tich hop trén PLD cia Altera Céc thu vién
Céc thu vién cia SOPC builder thuémg bao gdm cac thanh phan sau: > Vixt
Céc thu vién cia SOPC builder thuémg bao gdm cac thanh phan sau:
> Vixt ly

> Cac IP va cdc két néingoai vi

sau: > Vixt ly > Cac IP va cdc két néingoai vi > Cac giao dién

> Cac giao dién véi bé nhé

va cdc két néingoai vi > Cac giao dién véi bé nhé > Cac thiét bi

> Cac thiét bi lién lac ngoaivi

dién véi bé nhé > Cac thiét bi lién lac ngoaivi > Cac giao dién va

> Cac giao dién va cdc bus, bao gém ca giao dign Avalon

Cac giao dién va cdc bus, bao gém ca giao dign Avalon > Cac léi DSP

> Cac léi DSP

va cdc bus, bao gém ca giao dign Avalon > Cac léi DSP Ta cé thé

Ta cé thé sir dung SOPCbuilder dé xay cdc hé théng nhing bao gém CPU,giao

SOPCbuilder dé xay cdc hé théng nhing bao gém CPU,giao tiép bé nhé, va cdc module
SOPCbuilder dé xay cdc hé théng nhing bao gém CPU,giao tiép bé nhé, va cdc module
SOPCbuilder dé xay cdc hé théng nhing bao gém CPU,giao tiép bé nhé, va cdc module
SOPCbuilder dé xay cdc hé théng nhing bao gém CPU,giao tiép bé nhé, va cdc module

tiép bé nhé, va cdc module /O. Ta cing cé thé ding n6 chi dé tao ra m6t hé théng tao

Ta cing cé thé ding n6 chi dé tao ra m6t hé théng tao luéng dit
Ta cing cé thé ding n6 chi dé tao ra m6t hé théng tao luéng dit
Ta cing cé thé ding n6 chi dé tao ra m6t hé théng tao luéng dit
Ta cing cé thé ding n6 chi dé tao ra m6t hé théng tao luéng dit

luéng dit 1igu ma khéng bao gdm CPU.

ra m6t hé théng tao luéng dit 1igu ma khéng bao gdm CPU. SOPCstr dung mét
ra m6t hé théng tao luéng dit 1igu ma khéng bao gdm CPU. SOPCstr dung mét

SOPCstr dung mét giao dién nguwdi ding gdm cdc nhan dan (Tab). Cac tac vu duge phan chia theo chite ning va cdc tac vy cé lién quan véi nhau sé duge trinh bay trén cimg m6t nhn. Nhan system contents duge hién thi khi ta mé SOPC Builder. Hinh 1.2.2 trinh bay giao dién cha nhin nay (va ciing 1a giao dién mac dinh cha SOPC

dién cha nhin nay (va ciing 1a giao dién mac dinh cha SOPC Builder). Véi nhan
dién cha nhin nay (va ciing 1a giao dién mac dinh cha SOPC Builder). Véi nhan
dién cha nhin nay (va ciing 1a giao dién mac dinh cha SOPC Builder). Véi nhan
dién cha nhin nay (va ciing 1a giao dién mac dinh cha SOPC Builder). Véi nhan
dién cha nhin nay (va ciing 1a giao dién mac dinh cha SOPC Builder). Véi nhan
dién cha nhin nay (va ciing 1a giao dién mac dinh cha SOPC Builder). Véi nhan
dién cha nhin nay (va ciing 1a giao dién mac dinh cha SOPC Builder). Véi nhan

Builder). Véi nhan systemm contentsta cé thé:

dién mac dinh cha SOPC Builder). Véi nhan systemm contentsta cé thé: SVTH: NGUYEN MINH HIEU
dién mac dinh cha SOPC Builder). Véi nhan systemm contentsta cé thé: SVTH: NGUYEN MINH HIEU
dién mac dinh cha SOPC Builder). Véi nhan systemm contentsta cé thé: SVTH: NGUYEN MINH HIEU
dién mac dinh cha SOPC Builder). Véi nhan systemm contentsta cé thé: SVTH: NGUYEN MINH HIEU

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee > Thém vao hoiloai ra céc

GVHD :Th.S HUYNH HOU THUAN

ee

> Thém vao hoiloai ra céc componenttrong hé thing.

ee > Thém vao hoiloai ra céc componenttrong hé thing. > Cdu hinh cdc component. >
ee > Thém vao hoiloai ra céc componenttrong hé thing. > Cdu hinh cdc component. >
ee > Thém vao hoiloai ra céc componenttrong hé thing. > Cdu hinh cdc component. >

> Cdu hinh cdc component.

céc componenttrong hé thing. > Cdu hinh cdc component. > Chi dinh cdc dudng két néi

> Chi dinh cdc dudng két néi giita cic component.

> Chi dinh cdc dudng két néi giita cic component. Tabs BoardSettings Glock Settings Table a
> Chi dinh cdc dudng két néi giita cic component. Tabs BoardSettings Glock Settings Table a
Tabs BoardSettings Glock Settings Table a 9 AtaraS0°CBude Clee Nowcompanert - Sone NH Prine @-AvalonComponents
Tabs
BoardSettings
Glock Settings Table
a
9 AtaraS0°CBude Clee Nowcompanert
-
Sone
NH
Prine
@-AvalonComponents
Bod: [MosDevebpnent Board, Cyekne(EPIG2S)
v
a Renee eae
oO
@
NiosII Processor - Atera
Corpor
20 From cor
Oo
&
Sneak Eternal
os!
@
ication,
CS
Larvaen
FANG ART
i
| Use
MesoNar
Desert
routGock Base
Ed
RT ARS-232 sevia poet)
|||
5
Jiceiiocessor = tera Comoralare
ch
|
1] psructonmaster ules cru. Mate
«-Oieptny FPIC?O Miae Nevelopment Boe Bow
=
a
taster
Waster sr gt
Waster
oo
RO
@
i
sae
S| fosty_courtessatamaster0 waster or
Be eee eee:
L{+
Eweoet
tateinoon o.ccorr
a| Components
[yeaee Boas
{|||
|\ Expbitiy-soupted | instriétion
cn-chimenory Siwopot
Ramer ROW leys_ck
||| |
é
b | fe
Save prt
f o-0%0000. os0s0000, cxosoonrrr xosonnreF
=
a
B}ibhtly coupled_deta_mem
On.Chip Memory (RAMor RON)
|sys_ck
&
||
a
} a Hina
ona,
oxoztzna9 ox0212001F [7
Memory.
||
a
<55t_fom_pue
lnwston Tristate Bridge
faye ek
ia opptees cvrcrowmc ssn
(NUE
@pytash
Fach henry (Connonish it
4 c-c00000. cS0UreFFEF
@ EPCS SeriatFlachControter
|||
[¥)
beta
ITT1V416 SRAM
|@ Ox020000
OxO20FFFFF
©
rasnnewory conmonris ||, [21
08controler
@ prrivatsseme
||
LAN@ICt1 scs uielFlaenGaetoler terfacehere
terval ter
yzch
eutasoogon test000n cxo2iaureF ox2r1FFF Pe |
osi2tz0von eneizee29, Oana; 030212060 607 [0 [4
E
=e || 4 a
be [a efter hba.uort pbc timer
SE
|
a
k eblittonpio
oeoztz00e0 0.
ie
¥
|| a
~a}4a.
pio
nt21 2090 c»0212063F
{La
bq display
pxez206K0 0x0712008F
|
Howe Up
¥ Have bow
I
stad wth Fulleapabllaes and mast be compiled hiQuartue if wth the same icenss,
botadress pointsto xcltle memory. Executionof bndefinedcode may acour upon reset
joaforupdates.
(=
text> |
[Generate]
ComponentFilters
Connection Panel
Messages Window
Table ofActive Components
Hinh Cac thanh phan trong nhin system contents Bang 1.1: Cac thanh phan giao dign
Hinh
Cac thanh phan trong nhin system contents
Bang 1.1: Cac thanh phan giao dign ngwéi ding trén nhan system contents
Thanh phan
Chir ning
C&c nhan (Tabs)
Phan loai cic didu khién giao dién ngudi ding dya trén tic vu
Danh séch cdc thanh
Liét ké thu vién cdc thanh phn sin cé theo timg loai. Mai
phan sin cé (List of
thanh phan xudt hién kém mét chim mau ngay bén tén cia
(List of thanh phan xudt hién kém mét chim mau ngay bén tén cia SVTH: NGUYEN
(List of thanh phan xudt hién kém mét chim mau ngay bén tén cia SVTH: NGUYEN
(List of thanh phan xudt hién kém mét chim mau ngay bén tén cia SVTH: NGUYEN

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Available Component) no. Cham mau nay co

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Available Component) no. Cham mau nay co
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Available Component) no. Cham mau nay co
Available Component) no. Cham mau nay co y nghia sau:
Available Component)
no. Cham mau nay co y nghia sau:

e

e

e

Cham xanh 1a: cdc thanh phan day dir va co ban quyén da duoc cai dat

1a: cdc thanh phan day dir va co ban quyén da duoc cai dat Cham vang:
1a: cdc thanh phan day dir va co ban quyén da duoc cai dat Cham vang:
1a: cdc thanh phan day dir va co ban quyén da duoc cai dat Cham vang:
1a: cdc thanh phan day dir va co ban quyén da duoc cai dat Cham vang:

Cham vang: thanh phan khong day du, chi la ban danh gia (evaluation version).

phan khong day du, chi la ban danh gia (evaluation version). Cham trang: thanh phan chwacai
phan khong day du, chi la ban danh gia (evaluation version). Cham trang: thanh phan chwacai
phan khong day du, chi la ban danh gia (evaluation version). Cham trang: thanh phan chwacai
phan khong day du, chi la ban danh gia (evaluation version). Cham trang: thanh phan chwacai

Cham trang: thanh phan chwacai dat

gia (evaluation version). Cham trang: thanh phan chwacai dat Loc cac thanh phan (componentfilters) Loc cac
gia (evaluation version). Cham trang: thanh phan chwacai dat Loc cac thanh phan (componentfilters) Loc cac

Loc cac thanh phan

Cham trang: thanh phan chwacai dat Loc cac thanh phan (componentfilters) Loc cac thanh phan theo
(componentfilters)
(componentfilters)

Loc cac thanh phan theo loai

thanh phan (componentfilters) Loc cac thanh phan theo loai Bang cac thanh phan da kich hoat

Bang cac thanh phan da kich hoat (Table of Active Components)

cac thanh phan da kich hoat (Table of Active Components) Liét ké cdc thanh phan da
cac thanh phan da kich hoat (Table of Active Components) Liét ké cdc thanh phan da
cac thanh phan da kich hoat (Table of Active Components) Liét ké cdc thanh phan da
cac thanh phan da kich hoat (Table of Active Components) Liét ké cdc thanh phan da

Liét ké cdc thanh phan da duoc cai dat trén hé thong, cho

ké cdc thanh phan da duoc cai dat trén hé thong, cho phép ta chi dinh:
ké cdc thanh phan da duoc cai dat trén hé thong, cho phép ta chi dinh:
ké cdc thanh phan da duoc cai dat trén hé thong, cho phép ta chi dinh:

phép ta chi dinh:

phan da duoc cai dat trén hé thong, cho phép ta chi dinh: e e e

e

e

e

e

Tén cua timg thanh phan Dia chico ban cho mdicéng slave
Tén cua timg thanh phan
Dia chico ban cho mdicéng slave

Nguon xung clock cho mdi thanh phan

ban cho mdicéng slave Nguon xung clock cho mdi thanh phan Uutién ngat (néu cd) cho

Uutién ngat (néu cd) cho mi céng slave

cho mdi thanh phan Uutién ngat (néu cd) cho mi céng slave Bang két noi (Connection
Bang két noi
Bang
két
noi
(Connection Panel)
(Connection Panel)

Trinh bay cdc lién két gitra nhiing thanh phan,cho phépta:

bay cdc lién két gitra nhiing thanh phan,cho phépta: Chi dinh lién két gitta céng master

Chi dinh lién két gitta céng master va cong slave

Chi dinh lién két gitta céng master va cong slave Chi dinh cac chia sé théa

Chi dinh cac chia sé théa higp cho cac cong slave duge nhiéu cong master truy cap.

higp cho cac cong slave duge nhiéu cong master truy cap. Cac thiét lap bo mach
higp cho cac cong slave duge nhiéu cong master truy cap. Cac thiét lap bo mach
higp cho cac cong slave duge nhiéu cong master truy cap. Cac thiét lap bo mach

Cac thiét lap bo mach (Board Settings)

master truy cap. Cac thiét lap bo mach (Board Settings) Cho phépta chi dinh chi tiét
master truy cap. Cac thiét lap bo mach (Board Settings) Cho phépta chi dinh chi tiét
Cho phépta chi dinh chi tiét nén phan ctmg:
Cho phépta chi dinh chi tiét nén phan ctmg:

Vi du ta c6 thé chi dinh board cy thé str dung cho thiét ké

du ta c6 thé chi dinh board cy thé str dung cho thiét ké nay, nho
du ta c6 thé chi dinh board cy thé str dung cho thiét ké nay, nho
du ta c6 thé chi dinh board cy thé str dung cho thiét ké nay, nho
nay, nho dé SOPC Builder sé tw déng hé tro két ndi cdc chan ra
nay, nho dé SOPC Builder sé tw déng hé tro két ndi cdc chan
ra cac thiét bi ngoai chip (nhung van trén board). Diéu nay
giam dang ké thoi gian phai néi chan cho thiét ké.
board). Diéu nay giam dang ké thoi gian phai néi chan cho thiét ké. SVTH: NGUYEN
board). Diéu nay giam dang ké thoi gian phai néi chan cho thiét ké. SVTH: NGUYEN

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee Bang thiét lap xung clock (Clock

GVHD :Th.S HUYNH HOU THUAN

ee

Bang thiét lap xung

Bang thiét lap xung clock (Clock Settings
clock (Clock Settings
clock (Clock Settings

Cho phép dinh nghia cdc tin higu clock duge st dyng trong

Cho phép dinh nghia cdc tin higu clock duge st dyng trong hé thong bao gdm:
Cho phép dinh nghia cdc tin higu clock duge st dyng trong hé thong bao gdm:
Cho phép dinh nghia cdc tin higu clock duge st dyng trong hé thong bao gdm:

hé thong bao gdm: tén, ngudn, tin s6, va tay chon pipeline

Cho phép dinh nghia cdc tin higu clock duge st dyng trong hé thong bao gdm:
Cho phép dinh nghia cdc tin higu clock duge st dyng trong hé thong bao gdm:
Table)
Table)

chocc thiét ké cé téc d6 cao

chocc thiét ké cé téc d6 cao

Cia

(Messages Window)

théng bdo

Cia (Messages Window) sé théng bdo
Cia (Messages Window) sé théng bdo
Cia (Messages Window) sé théng bdo

Hién thi cdc cdnh bdo, 15i hay théng tin lién quan dén hé thinghién tai.

Hién thi cdc cdnh bdo, 15i hay théng tin lién quan dén hé thinghién tai.
Hién thi cdc cdnh bdo, 15i hay théng tin lién quan dén hé thinghién tai.
Hién thi cdc cdnh bdo, 15i hay théng tin lién quan dén hé thinghién tai.

1.2.2 ThiétKé SOPC Builder Ding Ma Verilog

thinghién tai. 1.2.2 ThiétKé SOPC Builder Ding Ma Verilog 1.2.2.1, Bét Du M6t SOPC Builder: Sao
thinghién tai. 1.2.2 ThiétKé SOPC Builder Ding Ma Verilog 1.2.2.1, Bét Du M6t SOPC Builder: Sao

1.2.2.1, Bét Du M6t SOPC Builder: Sao khi hoan thanh xong chong

Bét Du M6t SOPC Builder: Sao khi hoan thanh xong chong trinh chinh vige xay m6t
Bét Du M6t SOPC Builder: Sao khi hoan thanh xong chong trinh chinh vige xay m6t
trinh chinh vige xay m6t project méi cha Quartus I, géc phai cha giao dién
trinh chinh vige xay m6t project méi cha Quartus I, géc phai cha giao dién ta
thay biéu tugng SOPC Builder, click vao dé sé cho phép ching thiét ké mét hé
théng SOPC Builder cé thé lap trinh duge bang Nios II IDE. Giao dién duge
thé hign & hinh 1.2.3.
WW Create fiew System Mikera S007 Builder - unvemedcoac (Catena quarue\ ap2\unnarred toad) Syslen Contents
WW Create fiew System Mikera S007 Builder - unvemedcoac (Catena quarue\ ap2\unnarred toad)
Syslen
Contents System Generation
(i anera'soPcwurser
=
aie
=
2
Mos IFrccessor
Davee Family[Cyclone
Ss
p=
umdcnc
ee
(aa)
\sconcagesaraaaate's emertceHretaccis
i-MemansaneVemaryHortola ih i-Legaeycenerems venanereis
PUL
in
r
en
ene
Si
use
ca.
ml) GreateNawSystem
=
cee
Fase
VeioeNi rab
ea
TargtHD= @ Verlog
HDL
[@ nie: Soeenewroyaton ners:
[Rew
ry
«
5%
=:
airece Map
Filer
[@) fo Ne errarser wrerange.
(eh) Ge]
Teeth
(iene)
a)
|
Hinh 1.2.3. tao méi mét SOPC Builder.
Hinh 1.2.3. tao méi mét SOPC Builder.

1.2.2.2 Thiét Ké Hé Théng: sao khi tao méi m$t SOPC Builder, ching ta

Ké Hé Théng: sao khi tao méi m$t SOPC Builder, ching ta thiét ké cdc duéng
Ké Hé Théng: sao khi tao méi m$t SOPC Builder, ching ta thiét ké cdc duéng

thiét ké cdc duéng két néi bang cdch click vao Nios II processor dé add mét

két néi bang cdch click vao Nios II processor dé add mét cpu_0 duge thé hién
két néi bang cdch click vao Nios II processor dé add mét cpu_0 duge thé hién
két néi bang cdch click vao Nios II processor dé add mét cpu_0 duge thé hién

cpu_0 duge thé hién & hinh 1.2.4.

Nios II processor dé add mét cpu_0 duge thé hién & hinh 1.2.4. SVTH: NGUYEN MINH
Nios II processor dé add mét cpu_0 duge thé hién & hinh 1.2.4. SVTH: NGUYEN MINH
Nios II processor dé add mét cpu_0 duge thé hién & hinh 1.2.4. SVTH: NGUYEN MINH
Nios II processor dé add mét cpu_0 duge thé hién & hinh 1.2.4. SVTH: NGUYEN MINH
Nios II processor dé add mét cpu_0 duge thé hién & hinh 1.2.4. SVTH: NGUYEN MINH
Nios II processor dé add mét cpu_0 duge thé hién & hinh 1.2.4. SVTH: NGUYEN MINH

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 4 Edit Module - Altera SOPC Bui

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 4 Edit Module - Altera SOPC Bui
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 4 Edit Module - Altera SOPC Bui
4 Edit Module - Altera SOPC Bui ee ey File Edit Module System View T|
4 Edit Module - Altera SOPC Bui
ee
ey
File Edit Module
System
View
T|
Nios II Processor
Documentation
System Contents System Generati
(4) Altera SOPC Builder
af
ER
BayNege]-1o(tTeg
fa Bridges and Adapters
:
(#nterface Protocols
~ Gore Nios Il-
Legacy Components
Select a Nios Il core:
ONiosIl/e
|ONiosIl/f
|
RISC
RISC
Nios Il
32-bit
32-bit
Selector Guide
Family: Cyclone Il
Branch Prediction
Instruction Cache
Branch Prediction
z-
é
Hardware Multiply
Hardware Multisly
Peripherals
SPL
feystem: 50.0 MHz
epuict 0
HardwareDivide
Hardware Divide
BarrelShifter
f-USB
7
Data Cache
f41-Video and Image Processing
(Dynamic Branch Prediction
Performance at 50.0 MHz Up to 5 DMIPS
Up to 51 DMIPS:
Lagic Usage
600-700 LEs
1200-1400 LEs
1400-1800 LEs
Mr
|
Memory Usage
Two
M4Ks (or equiv.)
Three M4Ks + cache
-
Harchware Multiply: | Embedded
Multipliers
+)
[Hardware Divide
Edit.
Add
Reset Vector:
Memory:
~ |Offset: oxo
2
To
Do:
epu_O:
Noreset vector ha
Exception Vector: Memory: |
~ Offset: p20
2
To De: epu_d: No exception vect
22
Warning: ¢pu_0: Reset vector an
Include MMU
Only include the MMU when using an operating system that explicitly supports an MMU
Fast TLB Miss Exception Vector. Memory: |
_ |OffSet |o.5
Include MPL
ii | Warning: Reset vector and Exception vector cannot be set until memory devices are connected ta the NiosIl processor

Hinh 1.2.4. add cpu _0 vao dé tao két néi. Nhan finish 14 ching ta da hoan thanh viéc thiét ké mét két néi cpu_0 co ban.

da hoan thanh viéc thiét ké mét két néi cpu_0 co ban. Giao dién dugc thé
da hoan thanh viéc thiét ké mét két néi cpu_0 co ban. Giao dién dugc thé
da hoan thanh viéc thiét ké mét két néi cpu_0 co ban. Giao dién dugc thé
da hoan thanh viéc thiét ké mét két néi cpu_0 co ban. Giao dién dugc thé

Giao dién dugc thé hién & hinh 1.2.5.

cpu_0 co ban. Giao dién dugc thé hién & hinh 1.2.5. + Altera SOPC Builder -
cpu_0 co ban. Giao dién dugc thé hién & hinh 1.2.5. + Altera SOPC Builder -
cpu_0 co ban. Giao dién dugc thé hién & hinh 1.2.5. + Altera SOPC Builder -
+ Altera SOPC Builder - unnamed.sope* (c:\altera\81\quartus\lap2\unnamed.sopc) [=e] a] File Edit Module System View
+ Altera SOPC Builder - unnamed.sope* (c:\altera\81\quartus\lap2\unnamed.sopc)
[=e] a]
File Edit Module System View Tools Nios Il Help
System Contents System
i
|
Clock Settings
(J Attera SOPC Builder
EEE
8
Device Family: | Cyclone Il
7)
Name
Source
MHz
Bridges and Adapters
terface Protocals
External
50.0
Remove
clk_0
egacy Components
emories and Memory Contrallers
Use
Conne
Module Name
Description
Clock
Base
End
OB cpu_t
instructiom_master
Nios Il Processor
Avalon Memory Mapped Master
clk_0
data_master
Avalon Memory Mapped Master
IRQ oO
jtag_debug_module
Avalon Memory Mapped Slave
Ox00000300 [Oxd0000
Video and Image Processing
a
|
Mr
|
+
4
4
Mr
r
Edit
Remove
Edit
a Move Up
WF
Move Down
Address Map
© To Do: epu_0: No reset vector has been specified for this CPU. Please parameterize the CPU to resolve this issue
© To Do: epu_0: No exception vector has been specified for this CPU. Please parameterize the CPU to resolvethis issue
i Warning: cpu_0: Reset vector and Exception vector cannot be set until memory devices are connected to the Nios Il processor
q Prev
set until memory devices are connected to the Nios Il processor q Prev SVTH: NGUYEN MINH
set until memory devices are connected to the Nios Il processor q Prev SVTH: NGUYEN MINH
set until memory devices are connected to the Nios Il processor q Prev SVTH: NGUYEN MINH

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN Hinh 1.2.5. thiét ké module cpu_0. Tuongty,

GVHD :Th.S HUYNH HOU THUAN

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN Hinh 1.2.5. thiét ké module cpu_0. Tuongty,
pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN Hinh 1.2.5. thiét ké module cpu_0. Tuongty,

Hinh 1.2.5. thiét ké module cpu_0.

:Th.S HUYNH HOU THUAN Hinh 1.2.5. thiét ké module cpu_0. Tuongty, trong ctra sé SOPC Builder

Tuongty, trong ctra sé SOPC Builder nay cting cho phép ching ta add thém

ctra sé SOPC Builder nay cting cho phép ching ta add thém cdc module két néi

cdc module két néi can thiét cho vic ké mét hé théng can thiét, Minh hoatrong hinh

cho vic ké mét hé théng can thiét, Minh hoatrong hinh 1.2.6 sé cho ching ta
cho vic ké mét hé théng can thiét, Minh hoatrong hinh 1.2.6 sé cho ching ta
cho vic ké mét hé théng can thiét, Minh hoatrong hinh 1.2.6 sé cho ching ta
1.2.6 sé cho ching ta nhin r6 hon qua trinh nay.
1.2.6 sé cho ching ta nhin r6 hon qua trinh nay.
AlteraSOPCBuilder-unnamed.sopc*(c\altera\1\quartus\lap2\unnamed.sope) Fie Edt Module System View Tools Nosit Hep eee
AlteraSOPCBuilder-unnamed.sopc*(c\altera\1\quartus\lap2\unnamed.sope)
Fie Edt Module System View Tools Nosit Hep
eee
System Contents System Generation]
ClockSetings a
terfaceProtocols 5 ASI
*
DeviceFamiy|cycione
|
(name
aa
=
a
c5-Ethernet
Remove
is-High Speed
iclk_0
[External
'50.0
ean
ce-PCl
cp-LegacyComponents £5-Seria
E-MemariesandMemoryControl= c5-DMA,
co-Flash ©-On-Chip
||use
Cone
ModuleName
Clock
Base
End
wl
i epuo instructionmaster data_master
emo
©
Avalon-ST DualCI
Desertion
Ios t Processor
[AvalonMemoryMappedMaster [avalon Memory Mapped Master
me
®
Avalon-ST Mutti-C
jtag_debug_module
jAvalon Memory Mapped Slave
ex00000800 [0x00000
2
w
©
AvalonST Avalon-STRound On-Chip FFO Single Men
© tag_uart_o avalonfag_save
[Avalon lac uaRT Memory Mapped Slave
emo
©
7
El onchip_memory2_0 [On-chip Memory (RAM or ROM)
Efon-crip Memory . (Bg
st
[avalon Memory Mapped Slave
emo
exao0e000e [000000
9x00002000 [000002
«ft
i
J
,
New
}
Esit
Add.
Remove
cit
A Move Up
Move Down
[Address
Fiter
|
(DTo Do: epu_0:
No
reset vector has been specified for this CPU. Please parameterize tie CPU to resolve this issue
©
ToDo: epu_0: No exception vectorhas been specified forthis CPU. Please parameterize the CPUto resolvethis issue
Bat
Hep
(rev
(Net D
Generate

Hinh1.2.6. add cic module cin thiét

(rev (Net D Generate Hinh1.2.6. add cic module cin thiét Dé két néi cpu_0 véi onchip_memory2_0

Dé két néi cpu_0 véi onchip_memory2_0 lai véi nhau, ta can chi ra dwong dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7.

dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7. SVTH: NGUYEN
dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7. SVTH: NGUYEN
dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7. SVTH: NGUYEN
dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7. SVTH: NGUYEN
dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7. SVTH: NGUYEN
dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7. SVTH: NGUYEN
dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7. SVTH: NGUYEN
dan cho cpu_0 di dén. duéng dan nay duge thé hign trong hinh 1.2.7. SVTH: NGUYEN

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee "2NiosIPracessor~cpu. Ss Nios II Processor Sree

GVHD :Th.S HUYNH HOU THUAN

ee

"2NiosIPracessor~cpu. Ss Nios II Processor Sree Core Nios Il Select atlios ll core: ONiosIve ON
"2NiosIPracessor~cpu.
Ss
Nios II Processor
Sree
Core Nios Il
Select atlios ll core:
ONiosIve
ON
ONios IA
F
isc
RISC
Rise
Nios Il
sz
S2-be
sabe
Font SelectorGuide Oeionel:
BranchPrediction HerelwareMutiny instructionCache
HardwareMuttiply BranchPrediction InstruetionCache
feystem: 50.0 MHz
Hardware Divide
Hardware Divide
dames
BarrelShifter
DynamicBranchPrediction DataCache
Performance at 50.0 MHz Up to S DMIPS
250MPS upto st ups
LogieUsage
600-700Les
4400-1800LES
MemoryUsage
TwoMaks(oFequiv)
ThreeMAK+ cache
Hardware Multiply: Empedctect Muttipliers
+)
[Hardware Divide
Reset Vector:
Memory: |onchip_memory2_0
Offset: /ox0
9x00002000
Exception Vector: Memory
onchip_memory2_0
=) ottset [0x20
0002020
IncludeMMs
nly include the MMU when using an operating system that explcly supports anMM
Fast TLB Miss Exception Vector: Memory:
Offset:
IneueleMEU
Hinh1.2.7. lign két cpu_0 véi onchip memory2 0
Hinh1.2.7. lign két cpu_0 véi onchip memory2 0

Xong céngviéc thiét ké mt hé théng, chungta bién dich lai chongtrinh bang cach click vao button Generate dé biét xem trong qué trinh thiét ké cé sai xét gi khéng.

xem trong qué trinh thiét ké cé sai xét gi khéng. Quétrinh bién dich thanh céng
xem trong qué trinh thiét ké cé sai xét gi khéng. Quétrinh bién dich thanh céng
xem trong qué trinh thiét ké cé sai xét gi khéng. Quétrinh bién dich thanh céng
xem trong qué trinh thiét ké cé sai xét gi khéng. Quétrinh bién dich thanh céng
xem trong qué trinh thiét ké cé sai xét gi khéng. Quétrinh bién dich thanh céng

Quétrinh bién dich thanh céng duge thé hién & hinh 1.2.8.

Quétrinh bién dich thanh céng duge thé hién & hinh 1.2.8. SVTH: NGUYEN MINH HIEU -
Quétrinh bién dich thanh céng duge thé hién & hinh 1.2.8. SVTH: NGUYEN MINH HIEU -
Quétrinh bién dich thanh céng duge thé hién & hinh 1.2.8. SVTH: NGUYEN MINH HIEU -
Quétrinh bién dich thanh céng duge thé hién & hinh 1.2.8. SVTH: NGUYEN MINH HIEU -
Quétrinh bién dich thanh céng duge thé hién & hinh 1.2.8. SVTH: NGUYEN MINH HIEU -
Quétrinh bién dich thanh céng duge thé hién & hinh 1.2.8. SVTH: NGUYEN MINH HIEU -

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN rayiergrerasaiar Options System module logic will be

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN rayiergrerasaiar Options System module logic will be
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN rayiergrerasaiar Options System module logic will be
rayiergrerasaiar Options System module logic will be created in Verilog. {-] Simulation. Create project simulator
rayiergrerasaiar
Options
System module logic will be created in Verilog.
{-] Simulation. Create project simulator files.
Run Simulator
Nios Il Tools
Tira,
Tse was:
verors, 0
Info: Peak virtual memory: 70 megabytes:
Info: Processing ended: Tue Dec 02 13:51:56 2008
Info: Elapsedtime: 00:00:01
Info: Total CPU time (on all processors): 00:00:01
# 2008.12.02 13:51:56 (*)Completed generation for system: unnamed.
# 2008.12.02 13:51:56 (*)THE FOLLOWING SYSTEM ITEMS HAVE BEEN GENERATED:
SOPC Builder database : C:/altera/31/quartus/lap2/unnamed
System HDL Model : C:/altera/S12/unnamed.v
System Generation Script : C:/altera/81/quartus/ap2/unnamed_generation_script
# 2008.12.02 13:51:56 (*) SUCCESS: SYSTEM GENERATION COMPLETED.
[2
(Leet)
(Latics) [gdurrens) [vet > | (generate)
Hinh1.2.8. bién dich thanh cong
Hinh1.2.8. bién dich thanh cong

Bién dich thanh céng, dé tiép tuc chwongtrinh thiét ké hé thong ching ta quay lai voi ctra sé chinh cua QuartusII trong hinh 1.1.1 va gan pin cho hé théng theo hinh

trong hinh 1.1.1 va gan pin cho hé théng theo hinh 1.2.9. File Edit View D
trong hinh 1.1.1 va gan pin cho hé théng theo hinh 1.2.9. File Edit View D
trong hinh 1.1.1 va gan pin cho hé théng theo hinh 1.2.9. File Edit View D
trong hinh 1.1.1 va gan pin cho hé théng theo hinh 1.2.9. File Edit View D
trong hinh 1.1.1 va gan pin cho hé théng theo hinh 1.2.9. File Edit View D

1.2.9.

File Edit View D or dl et | & | % Device Wk # SVS
File
Edit View
D or dl et | & |
% Device
Wk # SVS Oly Fes |\sslh |S| S| ale
ProjectNavigator
SP Bins
84
Timing AnalysisSettings
Cyclone I: EP2C35F67
| 2% EDA Tool Settings
» lap2?
# Settings
(Ctrl+Shift+E
Classic Timing Analyzer Wizard
@
Assignment Editor Ctrl+Shift+A
2
Pin Planner
Ctrl+Shift+N
Remove Assignments
fe
Demote Assignments
I
Back-Annotate Assignments
Assignment (Time) Groups
&% Timing Closure Floorplan
@
LogicLockRegions WindowAlt+L
85 3) Design Partitions Window Alt+D
Hinh 1.2.9. Gan pin
Hinh 1.2.9. Gan pin
WindowAlt+L 85 3) Design Partitions Window Alt+D Hinh 1.2.9. Gan pin SVTH: NGUYEN MINH HIEU -
WindowAlt+L 85 3) Design Partitions Window Alt+D Hinh 1.2.9. Gan pin SVTH: NGUYEN MINH HIEU -
WindowAlt+L 85 3) Design Partitions Window Alt+D Hinh 1.2.9. Gan pin SVTH: NGUYEN MINH HIEU -

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Sao khi gan pin xong, ching ta

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Sao khi gan pin xong, ching ta
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Sao khi gan pin xong, ching ta
Sao khi gan pin xong, ching ta bién
Sao khi gan pin xong, ching ta bién

dich lai chong trinh mét lan nia trong

xong, ching ta bién dich lai chong trinh mét lan nia trong Quartus II dé hé

Quartus II dé hé thong lién két lai véi nhau. Quatrinh bién dich thanh céng dugc thé

lai véi nhau. Quatrinh bién dich thanh céng dugc thé hién trong hinh 1.2.10. = Pas
lai véi nhau. Quatrinh bién dich thanh céng dugc thé hién trong hinh 1.2.10. = Pas
lai véi nhau. Quatrinh bién dich thanh céng dugc thé hién trong hinh 1.2.10. = Pas

hién trong hinh 1.2.10.

bién dich thanh céng dugc thé hién trong hinh 1.2.10. = Pas c/altera/81/quartus;eae = ceiiee ene
= Pas c/altera/81/quartus;eae = ceiiee ene Flow w Project Assignments D aw a Ea I
= Pas c/altera/81/quartus;eae = ceiiee ene Flow
w
Project
Assignments
D aw
a
Ea I
M EVS
|G
Project Navigator
ax
@c
ion
Report - Flow Summary
|
Entity
Dedicated Logic
=
C
lation
Report
Flow
Si
&
CycloneIl: EP2C35F672C6
FSI Compilation s oe
SS
fee
ee
i
BB Legal Notice
He, lap Ay
215943)
[1321 (0)
BEDI Flow Summary
BEB Flow Settings
>
GBEB
Flow
EB Flow
Non-Default Global Se
Elapsed Time
GED Flow 05 Summary
4B Flow
Log
Flow Status
Quartus {| Version
Revision Name
Toptevel Entity Name
Successful - Tue Dec 02 14:07:14
8.1 Build 163 10/28/2008 SJ Web
2008
Edition
lap3_1
fap3_1
t#]- §000) Analysis & Synthesis
Family
Cyclone Il
ZG
i
iH Sp Fitter
Device
EP2C35F672C6.
a
-
_
Timing Models
os Final
@yHierarchy E Files a? Design Units
00 a pG Assembler Timing Av
=
a
juartus
[een]
¥
2,159/33,216(6%)
Tasks
ax
Howe = ti C;CS* * * * * * * * * * * * *~;CY
-
al Functions
2.018 /33.216(6%)
ist
1,321 /33.216(4%
a
fea]
@ Full Compilation was successful (486wamings)
jee
eae ($0)
wl &
Compile Design
Analysis & Synthesis
|o0-02:02|
-
6/475(1%)
wv
&
|00:00:53]
0
w
wv
Fitter (Place & Route)
00:00:44
78,080 / 483,840 (16%)
Assembler (Generate programmingfiles}|00:00:10|
Shit elements
4/70(6%)
vw
Bt
Classic Timing Analysis
EDA Netlist Writer
00:00:09)
Total PLEs
0/4(0%)
I~
{YW Program Device (Open Programmer)
a
I
FE
m
'
-
Type
Message
Le
iD
Info:
tsu for register " pzdyqu:nabboc|pzdyqx_impl:pzdyqu_impl_inst|VELJ8121: nigh abe amen
(data nae = altera_internal_jtag~SHIFIUSEI
Bw
BW
internal_jtag~TDO to destinati
t|sidshadowjsm:shadow|
a
a2 Teeeee Tied Deed eee
eee
Fee Semi te
Hinh 1.2.10. QuartusII bién dich thanh céng
Hinh 1.2.10. QuartusII bién dich thanh céng
Xong qua trinh thiét phan ctmg. Dé diéu khién dugc hé théng trén, Nios II
Xong qua trinh thiét phan ctmg. Dé diéu khién dugc hé théng trén, Nios II IDE
sé cho phép chungta lap trinh diéu khién toan bé hé théng ma chingta vira thiét ké.
Quay lai voi SOPC Builder sao khi bién dich thanh cong, click vao button Nios II IDE
dé thuhién viéc lap trinh. Hinh 1.2.11 sé cho chungta dugc nhin r6 hon van dé nay.
lap trinh. Hinh 1.2.11 sé cho chungta dugc nhin r6 hon van dé nay. SVTH: NGUYEN
lap trinh. Hinh 1.2.11 sé cho chungta dugc nhin r6 hon van dé nay. SVTH: NGUYEN
lap trinh. Hinh 1.2.11 sé cho chungta dugc nhin r6 hon van dé nay. SVTH: NGUYEN

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN & Altera SOPC 6) IIB Nios I

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN & Altera SOPC 6) IIB Nios I
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN & Altera SOPC 6) IIB Nios I
& Altera SOPC 6) IIB Nios I C/C++ - Nios TIDE ee File Edit Run
& Altera SOPC 6) IIB Nios I C/C++ - Nios TIDE
ee
File
Edit
Run
Help
Ecit Module
Navigate
Tools
Window
File
Search
Project
SystemContents
4 ~
@~ ~~ G~
H-O-rQ-~i:
8 #
fa
~ He
Pe
© Nosicic= |
= ||
@ Make Targets 23
=O
£2
aa
6 piiogs
BB Nios 1C/C++ Projects
System moduleIo|
le &
-
a&
Simulation
[eS z altera.components
#2008.12.021
# 2008.12.02 1
SOPC Builder
System HDL N
System Genet
# 2008.12.021
|@ Info: System ga
«i
(@ info: No errors
fi. Problems £2
Console) Properties
te
0 errors, 0 warnings, 0 infos
Hinh 1.2.11. lap trinh Nios II IDE
Hinh 1.2.11. lap trinh Nios II IDE
1.3 Phan Mém NIOSII IDE
1.3 Phan Mém NIOSII IDE

Day 1a chuong trinh bién dich ng6én ngit lap trinh C va download chung vao

bién dich ng6én ngit lap trinh C va download chung vao trong chip Nios II. Né
bién dich ng6én ngit lap trinh C va download chung vao trong chip Nios II. Né

trong chip Nios II. Né chon hé théng SOPC gém co: bé nhd, b6 dém va nhiéu va

chon hé théng SOPC gém co: bé nhd, b6 dém va nhiéu va chon khac dé
chon hé théng SOPC gém co: bé nhd, b6 dém va nhiéu va chon khac dé
chon hé théng SOPC gém co: bé nhd, b6 dém va nhiéu va chon khac dé
chon hé théng SOPC gém co: bé nhd, b6 dém va nhiéu va chon khac dé
chon khac dé bién dich, debug va chay chuong trinh C. JTAG UARC ding dé
chon khac dé bién dich, debug va chay chuong trinh C. JTAG UARC ding dé
download file C téi chip NIOS II. NIOS II IDE cé mét new project wizard ding dé tu
déng cai dat project ing dung C/C++ va project thu vién hé thong. hon nia, NIOS II

IDE cung cép ma phan mém vi du( trong dang project khuén mau)dé hé tro cdc k¥ su

vi du( trong dang project khuén mau)dé hé tro cdc k¥ su phan mém 1am viéc
vi du( trong dang project khuén mau)dé hé tro cdc k¥ su phan mém 1am viéc

phan mém 1am viéc véi hé théng nhanh nhat cé thé. Mi khu6n méau1a lwa chon file phan mém va thiét lap project. Ngudi thiét ké cd thé thém m4 nguén cuariéng ho vao project bang cach thay thé code vao trong thu mucproject hodc import file vao trong project. Dya trén chudn céng nghiép chudi céng cu JNU, NIOSII cungcap giao dién

céng nghiép chudi céng cu JNU, NIOSII cungcap giao dién ngwoi ding dé bién soan. Méi
céng nghiép chudi céng cu JNU, NIOSII cungcap giao dién ngwoi ding dé bién soan. Méi
céng nghiép chudi céng cu JNU, NIOSII cungcap giao dién ngwoi ding dé bién soan. Méi
céng nghiép chudi céng cu JNU, NIOSII cungcap giao dién ngwoi ding dé bién soan. Méi
céng nghiép chudi céng cu JNU, NIOSII cungcap giao dién ngwoi ding dé bién soan. Méi
céng nghiép chudi céng cu JNU, NIOSII cungcap giao dién ngwoi ding dé bién soan. Méi

ngwoi ding dé bién soan. Méi trudng xdy dung NIOSS II IDE dugc thiét ké dé thuan

Méi trudng xdy dung NIOSS II IDE dugc thiét ké dé thuan tién phat trién phan
Méi trudng xdy dung NIOSS II IDE dugc thiét ké dé thuan tién phat trién phan
Méi trudng xdy dung NIOSS II IDE dugc thiét ké dé thuan tién phat trién phan

tién phat trién phan mém cho bé xir ly NIOS II cua ALTERA mién 1a dé ding Push- Button. Mac da ciing cho phép nguoi thiét ké xdy dumg cac thiét lap cao cap bangtay. Méi truéng x4y dung NIOS II IDE cung cap mét make file dya trén cau hinh hé thong

II IDE cung cap mét make file dya trén cau hinh hé thong cu thé(file SOPC
II IDE cung cap mét make file dya trén cau hinh hé thong cu thé(file SOPC
II IDE cung cap mét make file dya trén cau hinh hé thong cu thé(file SOPC
II IDE cung cap mét make file dya trén cau hinh hé thong cu thé(file SOPC
II IDE cung cap mét make file dya trén cau hinh hé thong cu thé(file SOPC

cu thé(file SOPC Builder GENERATE PTF). Thay d6i thiét lap trinh bién dich/méi

GENERATE PTF). Thay d6i thiét lap trinh bién dich/méi lién két trong NIOS II IDE dugc
GENERATE PTF). Thay d6i thiét lap trinh bién dich/méi lién két trong NIOS II IDE dugc

lién két trong NIOS II IDE dugc lam ty déng trong make file nay. Thiét lap nay cd thé

II IDE dugc lam ty déng trong make file nay. Thiét lap nay cd thé SVTH:
II IDE dugc lam ty déng trong make file nay. Thiét lap nay cd thé SVTH:
II IDE dugc lam ty déng trong make file nay. Thiét lap nay cd thé SVTH:
II IDE dugc lam ty déng trong make file nay. Thiét lap nay cd thé SVTH:
II IDE dugc lam ty déng trong make file nay. Thiét lap nay cd thé SVTH:
II IDE dugc lam ty déng trong make file nay. Thiét lap nay cd thé SVTH:

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN bao gdm tuy chon chofile khdi tao

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN bao gdm tuy chon chofile khdi tao
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN bao gdm tuy chon chofile khdi tao

bao gdm tuy chon chofile khdi tao bé6 nhé(MIF), ndi dung flash, file khoi tao m6

khdi tao bé6 nhé(MIF), ndi dung flash, file khoi tao m6 phéng(DAT/HEX), va file tom tat
khdi tao bé6 nhé(MIF), ndi dung flash, file khoi tao m6 phéng(DAT/HEX), va file tom tat

phéng(DAT/HEX), va file tom tat profile.

file khoi tao m6 phéng(DAT/HEX), va file tom tat profile. NIOS II IDE chira debug phan

NIOS II IDE chira debug phan mém dia trén debug GNU, GDP. Debug cung cap nhiéu tinh nang debug co ban, ciing nhu cdc tinh nang debug khac thuong 1a khong c6 san trong cac kit phat trién bd xi ly gid thap. Hoadt dong chay debug dugc cung cap san bang cach click phai vao project. NIOS II IDE cho phép ban chay hoac debug project trén board muc tiéu hoac tap lénh mé phdong NIOS II(ISS). Mdéi img dung c6 thu vién riéng cua n6. Thu vién nay chita file lién quan tdi hé thong x4y dung cia SOPC Builder. N6 c6 thé thuc hién lua chon b6 nhé ng6 vao, ngd ra va bd dém cho tmg dung. Cé nhiéu tiy chon ctia bién dich va chay chuongtrinh. No thi rat hitu ich cho luan diém project nay tiy chon thu vién C nhd . Khi tay chon thu vién C

tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,
tiy chon thu vién C nhd . Khi tay chon thu vién C nho duoc chon,

nho duoc chon, thu vién hé thong ding b6 xung giam bét cua thu vién chuan Newlib

hé thong ding b6 xung giam bét cua thu vién chuan Newlib ANSI C. dat bigt,
hé thong ding b6 xung giam bét cua thu vién chuan Newlib ANSI C. dat bigt,
hé thong ding b6 xung giam bét cua thu vién chuan Newlib ANSI C. dat bigt,
hé thong ding b6 xung giam bét cua thu vién chuan Newlib ANSI C. dat bigt,
ANSI C. dat bigt, ho prinfQ) cua thu tuc(prinfQ), fprinfQ, sprinfQ) gia tri con tré
ANSI C. dat bigt, ho prinfQ) cua thu tuc(prinfQ), fprinfQ, sprinfQ) gia tri con tré thay

d6i khi tuy chon nay duoc check.

gia tri con tré thay d6i khi tuy chon nay duoc check. L3.1 T.ong quan cac
L3.1 T.ong quan cac tinh nang cia bé vi xu ly NIOS IT:
L3.1 T.ong quan cac tinh nang cia bé vi xu ly NIOS IT:

NIOS II 1a m6t bé vi xt ly mém cé mét sé tinh nang cé thé cau hinh phu hop voi ngudi ding dé tao ra mét hé thong mong mudn duge xt ly cé thé cung cap cong cu trong ba cach cé thé cau hinh khac nhau.

cung cap cong cu trong ba cach cé thé cau hinh khac nhau. NIOSII/ fax due
cung cap cong cu trong ba cach cé thé cau hinh khac nhau. NIOSII/ fax due
cung cap cong cu trong ba cach cé thé cau hinh khac nhau. NIOSII/ fax due
cung cap cong cu trong ba cach cé thé cau hinh khac nhau. NIOSII/ fax due
cung cap cong cu trong ba cach cé thé cau hinh khac nhau. NIOSII/ fax due
cung cap cong cu trong ba cach cé thé cau hinh khac nhau. NIOSII/ fax due
cung cap cong cu trong ba cach cé thé cau hinh khac nhau. NIOSII/ fax due
cung cap cong cu trong ba cach cé thé cau hinh khac nhau. NIOSII/ fax due
NIOSII/ fax due thiét ké cho viéc thuc thi manh. No cé nhiéu tuy chon
NIOSII/ fax due thiét ké cho viéc thuc thi manh. No cé nhiéu tuy chon dé cau hinh,
cé thé dugc str dung dé t6i wu cho bd xt ly thuc thi.
NIOS II/S 1a mét phién ban chuan , phién ban nay yéu cau nguén tai
NIOS II/S 1a mét phién ban chuan , phién ban nay yéu cau nguén tai nguyén thap

trong mét thiét bi FPGA thich hgp chocdc thuc thi don gian.

mét thiét bi FPGA thich hgp chocdc thuc thi don gian. NIOS IVE 1a m6t phién
mét thiét bi FPGA thich hgp chocdc thuc thi don gian. NIOS IVE 1a m6t phién
NIOS IVE 1a m6t phién ban kinh té , phién ban nay yéu cau nguén
NIOS IVE 1a m6t phién
ban kinh té , phién ban nay yéu cau nguén tai nguyén
thap

nhat cua thiét bi FPGA nhung né ciing cé nhiéu gidi han nhat dé thiét 1ap cdc tinh

né ciing cé nhiéu gidi han nhat dé thiét 1ap cdc tinh nang ma nguwoi str
né ciing cé nhiéu gidi han nhat dé thiét 1ap cdc tinh nang ma nguwoi str

nang ma nguwoi str dung cé thé dung.

thiét 1ap cdc tinh nang ma nguwoi str dung cé thé dung. Bo xi ly NIOS
thiét 1ap cdc tinh nang ma nguwoi str dung cé thé dung. Bo xi ly NIOS

Bo xi ly NIOS II 1a kién tric maytinh thiét lap cdc tap lénh don gian(RISC),

kién tric maytinh thiét lap cdc tap lénh don gian(RISC), cac hoat dong sé hoc logic
kién tric maytinh thiét lap cdc tap lénh don gian(RISC), cac hoat dong sé hoc logic
kién tric maytinh thiét lap cdc tap lénh don gian(RISC), cac hoat dong sé hoc logic

cac hoat dong sé hoc logic cua no dugc thi hanh trén cac toan han trong cac thanh ghi

hoc logic cua no dugc thi hanh trén cac toan han trong cac thanh ghi SVTH:
hoc logic cua no dugc thi hanh trén cac toan han trong cac thanh ghi SVTH:
hoc logic cua no dugc thi hanh trén cac toan han trong cac thanh ghi SVTH:
hoc logic cua no dugc thi hanh trén cac toan han trong cac thanh ghi SVTH:
hoc logic cua no dugc thi hanh trén cac toan han trong cac thanh ghi SVTH:

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN da nang. Dit liéu duoc di chuyén

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN da nang. Dit liéu duoc di chuyén
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN da nang. Dit liéu duoc di chuyén

da nang. Dit liéu duoc di chuyén gitta bé nho va cac thanh ghi nay theo muc dich cua lénh load vastore.

va cac thanh ghi nay theo muc dich cua lénh load vastore. D6 dai cia b6
va cac thanh ghi nay theo muc dich cua lénh load vastore. D6 dai cia b6
va cac thanh ghi nay theo muc dich cua lénh load vastore. D6 dai cia b6
va cac thanh ghi nay theo muc dich cua lénh load vastore. D6 dai cia b6
va cac thanh ghi nay theo muc dich cua lénh load vastore. D6 dai cia b6

D6 dai cia b6 xu ly NIOS II 1a 32bit. Tat ca cdc thanh ghi cd d6 dai la 32 bit, cac byte dia chi trong 32 bit c6 thé dugc gan trong kiéu little-endian hodc kiéu bit- endian. Cac kiéu gan nay la mét trong nhimg tiy chon ma nguwdi str dung cé thé lua

la mét trong nhimg tiy chon ma nguwdi str dung cé thé lua chon dé cau
la mét trong nhimg tiy chon ma nguwdi str dung cé thé lua chon dé cau
la mét trong nhimg tiy chon ma nguwdi str dung cé thé lua chon dé cau
la mét trong nhimg tiy chon ma nguwdi str dung cé thé lua chon dé cau
la mét trong nhimg tiy chon ma nguwdi str dung cé thé lua chon dé cau

chon dé cau hinh thoi gian. Kién tric NIOS II ding dé tach roi cdc bus tap 1énh vadit

Kién tric NIOS II ding dé tach roi cdc bus tap 1énh vadit liéu. cai nay
Kién tric NIOS II ding dé tach roi cdc bus tap 1énh vadit liéu. cai nay
Kién tric NIOS II ding dé tach roi cdc bus tap 1énh vadit liéu. cai nay
Kién tric NIOS II ding dé tach roi cdc bus tap 1énh vadit liéu. cai nay

liéu. cai nay thudng lién quan téi kién trac phan cimg.

liéu. cai nay thudng lién quan téi kién trac phan cimg. Mot b6 xt ly NIOS

Mot b6 xt ly NIOS II co thé hoat dong trong ba ché d6 sau:

Mot b6 xt ly NIOS II co thé hoat dong trong ba ché d6 sau: >
Mot b6 xt ly NIOS II co thé hoat dong trong ba ché d6 sau: >
Mot b6 xt ly NIOS II co thé hoat dong trong ba ché d6 sau: >

> Ché dé gidm sat: cho phép bé6 xt ly thi hanh tat ca cdc tap 1énh va thuc hién tat ca cdc ham co san. khi bd xt ly reset, nd sé di vao ché d6 nay.

ham co san. khi bd xt ly reset, nd sé di vao ché d6 nay. >
ham co san. khi bd xt ly reset, nd sé di vao ché d6 nay. >
ham co san. khi bd xt ly reset, nd sé di vao ché d6 nay. >
ham co san. khi bd xt ly reset, nd sé di vao ché d6 nay. >
ham co san. khi bd xt ly reset, nd sé di vao ché d6 nay. >

> Ché dé ngudi ding: ngan ngira viéc thuc hién mét vai tap lénh dung cho hé thong muctiéu. Mét vai tinh nang cua b6 xu ly khéng sit dung dugc trong ché do nay.

nang cua b6 xu ly khéng sit dung dugc trong ché do nay. > Ché dé
nang cua b6 xu ly khéng sit dung dugc trong ché do nay. > Ché dé
nang cua b6 xu ly khéng sit dung dugc trong ché do nay. > Ché dé
nang cua b6 xu ly khéng sit dung dugc trong ché do nay. > Ché dé
nang cua b6 xu ly khéng sit dung dugc trong ché do nay. > Ché dé

> Ché dé debug: dugc str dung béi cdc céng cu debug dé thuc hién cdc tinh ning nhu diém ngat va diém theo déi.

thuc hién cdc tinh ning nhu diém ngat va diém theo déi. Cac chuongtrinh img dung
thuc hién cdc tinh ning nhu diém ngat va diém theo déi. Cac chuongtrinh img dung
thuc hién cdc tinh ning nhu diém ngat va diém theo déi. Cac chuongtrinh img dung
thuc hién cdc tinh ning nhu diém ngat va diém theo déi. Cac chuongtrinh img dung
thuc hién cdc tinh ning nhu diém ngat va diém theo déi. Cac chuongtrinh img dung

Cac chuongtrinh img dung cé thé chay trong ché d6 ngudi ding hoac ché dé giam sat. Cac phién ban c6 san hién gid cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung.

cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic
cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic
cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic
cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic
cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic
cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic
cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic
cua bé xit ly NIOS II khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic

1.3.2 Cau Triic Thanh Ghi

khéng hé tro ché d6 ngudi dung. 1.3.2 Cau Triic Thanh Ghi Bo xt ly NIOS
Bo xt ly NIOS II c6 32 thanh ghi da nang c6 32 bit, mdt
Bo xt ly NIOS II c6 32 thanh ghi da nang c6 32 bit, mdt vai thanh ghi duoc
gianh cho mét muc dich cu thé va co tén riéng. No duge thira nhan bdi chuong

trinh dich hop ngit.

riéng. No duge thira nhan bdi chuong trinh dich hop ngit. > Thanh ghi RO duge
> Thanh ghi RO duge xem nhu 1a thanh ghi zero luén lu6én chwa gia
> Thanh ghi RO duge xem nhu 1a thanh ghi zero luén lu6én chwa gia tri khong
ddi 1a 0.

> Thanh ghi R1 duoc st dung boi chuongtrinh hop ngit nhu mét thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding.

thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding. SVTH: NGUYEN MINH
thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding. SVTH: NGUYEN MINH
thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding. SVTH: NGUYEN MINH
thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding. SVTH: NGUYEN MINH
thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding. SVTH: NGUYEN MINH
thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding. SVTH: NGUYEN MINH
thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding. SVTH: NGUYEN MINH
thanh ghi tam thoi. No khong duoc str dung cho chuongtrinh nguwoi ding. SVTH: NGUYEN MINH

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN > Thanh ghi R24 va R29 duoc

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN > Thanh ghi R24 va R29 duoc
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN > Thanh ghi R24 va R29 duoc

> Thanh ghi R24 va R29 duoc sir dung xt ly cdc ngoai 1é. ching khong cé san trong ché d6 ngudi dung.

cdc ngoai 1é. ching khong cé san trong ché d6 ngudi dung. > Thanh ghi R25
cdc ngoai 1é. ching khong cé san trong ché d6 ngudi dung. > Thanh ghi R25
cdc ngoai 1é. ching khong cé san trong ché d6 ngudi dung. > Thanh ghi R25

> Thanh ghi R25 va R30 duoc sir dung gianh riéng cho ché d6 debug JTAG.

va R30 duoc sir dung gianh riéng cho ché d6 debug JTAG. > Thanh ghi R27
va R30 duoc sir dung gianh riéng cho ché d6 debug JTAG. > Thanh ghi R27

> Thanh ghi R27 va R28 ding dé diéu khién Stack.

> Thanh ghi R27 va R28 ding dé diéu khién Stack. > Thanh ghi R31 duoc
> Thanh ghi R27 va R28 ding dé diéu khién Stack. > Thanh ghi R31 duoc
> Thanh ghi R31 duoc str dung dé git gid tri tra vé khi m6t
> Thanh ghi R31 duoc str dung dé git gid tri tra vé khi m6t chuong trinh con
duoc goi.
Thanh ghi
Tén
Chic nang
r0
zero
0x00000000
rl
at
Chuongtrinh dich hop ngit tam thoi
r2
r3
123
124
et
phan déi tam thoi (1)
125
bt
diém ngat tam thoi (2)
126
gb
con tré toan cuc
127
sp
con tro stack
128
fp
con tré khung
129
ea
dia chi tra vé ngoai1é (1)
stack 128 fp con tré khung 129 ea dia chi tra vé ngoai1é (1) SVTH: NGUYEN
stack 128 fp con tré khung 129 ea dia chi tra vé ngoai1é (1) SVTH: NGUYEN
stack 128 fp con tré khung 129 ea dia chi tra vé ngoai1é (1) SVTH: NGUYEN

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 630 ba dia chi tra vé diém

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 630 ba dia chi tra vé diém
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 630 ba dia chi tra vé diém
630 ba dia chi tra vé diém ngat(2) r3] ra dia chi tra vé (1)
630 ba
dia chi tra vé diém ngat(2)
r3]
ra
dia chi tra vé
(1) thanh ghi khong cé san trong ché d6 ngudi ding
(2) thanh ghi chi ding trong ché d6 debug JTAG
Bang I Cac Thanh Ghi Da Nang
Cac thanh ghi nay duoc str dung tu déng cho muc dich diéu khién. ching cé thé
doc va ghi bang cac lénh riéng biét rdctl va wrdctl, cdi nay chi cd thé thuc hién cho
muc dich giam sat. Cac thanh ghi dugc str dung nhusau:

>

Thanh ghi ctl0 tuong tng voitrang thai hoat déng cua b6 xu ly. Chi co 2bit cua thanh ghi nay co y nghia:

cua b6 xu ly. Chi co 2bit cua thanh ghi nay co y nghia: e U
cua b6 xu ly. Chi co 2bit cua thanh ghi nay co y nghia: e U
cua b6 xu ly. Chi co 2bit cua thanh ghi nay co y nghia: e U
cua b6 xu ly. Chi co 2bit cua thanh ghi nay co y nghia: e U

e

U la bit ché dé ngudi ding/gidm sat. U=1 1a ché dod

e U la bit ché dé ngudi ding/gidm sat. U=1 1a ché dod ngudi dung, U=0
ngudi dung, U=0 1a ché dé giam sat.
ngudi dung, U=0 1a ché dé giam sat.

e

PIE 1a bit xt ly enable ngat. PIE=1, b6 xi ly cé thé

e PIE 1a bit xt ly enable ngat. PIE=1, b6 xi ly cé thé chap nhan
e PIE 1a bit xt ly enable ngat. PIE=1, b6 xi ly cé thé chap nhan

chap nhan ngat bén ngoai. PIE=0, bé xt ly bd qua ngat bén ngoai.

ngat bén ngoai. PIE=0, bé xt ly bd qua ngat bén ngoai. Thanh ghi ctll git
ngat bén ngoai. PIE=0, bé xt ly bd qua ngat bén ngoai. Thanh ghi ctll git
ngat bén ngoai. PIE=0, bé xt ly bd qua ngat bén ngoai. Thanh ghi ctll git
ngat bén ngoai. PIE=0, bé xt ly bd qua ngat bén ngoai. Thanh ghi ctll git

Thanh ghi ctll git ban sao luu tri cua thanh ghi trang thai trong qua trinh

git ban sao luu tri cua thanh ghi trang thai trong qua trinh xu ly ngoai
git ban sao luu tri cua thanh ghi trang thai trong qua trinh xu ly ngoai

xu ly ngoai 1é. bit EU va EPIE ding dé luu trit cdc bit trang thai U va PIE.

EU va EPIE ding dé luu trit cdc bit trang thai U va PIE. Thanh ghi
EU va EPIE ding dé luu trit cdc bit trang thai U va PIE. Thanh ghi
EU va EPIE ding dé luu trit cdc bit trang thai U va PIE. Thanh ghi

Thanh ghi ctl2 luu giit ban sao cua thanh ghi trang thai trong quatrinh xu ly

giit ban sao cua thanh ghi trang thai trong quatrinh xu ly ngat debug. Bit BU

ngat debug. Bit BU va BPIE luu gia tri cua bit trang thai U va PIE.

Bit BU va BPIE luu gia tri cua bit trang thai U va PIE. Thanh ghi
Bit BU va BPIE luu gia tri cua bit trang thai U va PIE. Thanh ghi
Bit BU va BPIE luu gia tri cua bit trang thai U va PIE. Thanh ghi

Thanh ghi ctl3 dung dé enable riéng ngat bén ngoai. M6ibit tuong tng mét

dé enable riéng ngat bén ngoai. M6ibit tuong tng mét ngat irqO toi irq31. Gia tri
ngat irqO toi irq31. Gia tri 14 1 cé nghia 1a ngat enable, 1a 0
ngat irqO toi irq31. Gia tri 14 1 cé nghia 1a ngat enable, 1a 0 thi né disable.
Gia tri 14 1 cé nghia 1a ngat enable, 1a 0 thi né disable. Thanh ghi

Thanh ghi ctl4 chi ra ngat dang cho. Gia tri cua bit nhan dugc, ctl4, duoc set la 1 néu ngat irqk thi ca 2 active va enable bdi bit ngat enable, ctl3, set dén

ca 2 active va enable bdi bit ngat enable, ctl3, set dén 1. Thanh ghictl5 gitr
ca 2 active va enable bdi bit ngat enable, ctl3, set dén 1. Thanh ghictl5 gitr
ca 2 active va enable bdi bit ngat enable, ctl3, set dén 1. Thanh ghictl5 gitr

1.

ca 2 active va enable bdi bit ngat enable, ctl3, set dén 1. Thanh ghictl5 gitr

Thanh ghictl5 gitr gid tri nhan biét xi ly duy nhat trong hé thong da xu ly.

gitr gid tri nhan biét xi ly duy nhat trong hé thong da xu ly. SVTH:
gitr gid tri nhan biét xi ly duy nhat trong hé thong da xu ly. SVTH:
gitr gid tri nhan biét xi ly duy nhat trong hé thong da xu ly. SVTH:
gitr gid tri nhan biét xi ly duy nhat trong hé thong da xu ly. SVTH:
gitr gid tri nhan biét xi ly duy nhat trong hé thong da xu ly. SVTH:

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Thanh ghi Tén b31 b2 bl bO

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Thanh ghi Tén b31 b2 bl bO
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Thanh ghi Tén b31 b2 bl bO
Thanh ghi Tén b31 b2 bl bO ctl0 status Danh riéng U PIE ctll estatus
Thanh ghi
Tén
b31
b2
bl
bO
ctl0
status
Danh riéng
U PIE
ctll
estatus
Danhriéng
EU
EPIE
ctl2
bstatus
Danh riéng
BU
BPIE
ctl3
ienable
Bit enable ngat
ctl4
ipending
Bit cho doi ngat
ctl5
cpuid
Nhan biét b6 xt ly duy nhat
Bang 2 Thanh Ghi Diéu Khién

1.3.3.

Truy Xuat B6 Nhé Va Thiét Bi I/O

Ghi Diéu Khién 1.3.3. Truy Xuat B6 Nhé Va Thiét Bi I/O Dé thuc thi tot
Ghi Diéu Khién 1.3.3. Truy Xuat B6 Nhé Va Thiét Bi I/O Dé thuc thi tot

Dé thuc thi tot nhat, bd xt ly NIOS II/F cé thé bao gém ca hai b6 nhé dém tap

bd xt ly NIOS II/F cé thé bao gém ca hai b6 nhé dém tap lénh
bd xt ly NIOS II/F cé thé bao gém ca hai b6 nhé dém tap lénh
bd xt ly NIOS II/F cé thé bao gém ca hai b6 nhé dém tap lénh

lénh va dir ligu. b6 nho dém dugc thuc hién trong khéi b6 nhé FPGA,cach str dung

dém dugc thuc hién trong khéi b6 nhé FPGA,cach str dung cia ching la tay y
dém dugc thuc hién trong khéi b6 nhé FPGA,cach str dung cia ching la tay y
dém dugc thuc hién trong khéi b6 nhé FPGA,cach str dung cia ching la tay y
dém dugc thuc hién trong khéi b6 nhé FPGA,cach str dung cia ching la tay y
dém dugc thuc hién trong khéi b6 nhé FPGA,cach str dung cia ching la tay y
cia ching la tay y va ching duoc chi dinh (bao gém kich thudc cua
cia ching la tay y va ching duoc chi dinh (bao gém kich thudc cua ching) 6 thoi
gian khdi tao hé thong
bang
cach str dung SOPC Builder.
Phién
ban
NIOS II/S cé
thé cd b6 nhé dém tap lénh nhung khong co b6 nho dém di ligu. phién ban NIOS

II/E khéng co bé nho dém tap 1énh va dit ligu, ndi cach khac dé bé xu ly truy xuat

tap 1énh va dit ligu, ndi cach khac dé bé xu ly truy xuat nhanh dén
tap 1énh va dit ligu, ndi cach khac dé bé xu ly truy xuat nhanh dén
tap 1énh va dit ligu, ndi cach khac dé bé xu ly truy xuat nhanh dén
tap 1énh va dit ligu, ndi cach khac dé bé xu ly truy xuat nhanh dén
tap 1énh va dit ligu, ndi cach khac dé bé xu ly truy xuat nhanh dén

nhanh dén b6 nhé trén chip bang cach su dung két hop chat ché ca hai bé nho,

chip bang cach su dung két hop chat ché ca hai bé nho, trong trong hop
chip bang cach su dung két hop chat ché ca hai bé nho, trong trong hop
chip bang cach su dung két hop chat ché ca hai bé nho, trong trong hop
chip bang cach su dung két hop chat ché ca hai bé nho, trong trong hop
chip bang cach su dung két hop chat ché ca hai bé nho, trong trong hop

trong trong hop nay bé xt ly truy xuat bd nhé qua dudng dan chi ra tt hon qua

bé xt ly truy xuat bd nhé qua dudng dan chi ra tt hon qua mang
bé xt ly truy xuat bd nhé qua dudng dan chi ra tt hon qua mang
bé xt ly truy xuat bd nhé qua dudng dan chi ra tt hon qua mang
bé xt ly truy xuat bd nhé qua dudng dan chi ra tt hon qua mang

mang luéi Evelon. Truy xuat dén b6 nhé két hop chat ché bd qua bé nhdém. cd thé cd mét hodc nhiéu bé nhé tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh

tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong
tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong
tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong
tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong
tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong
tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong
tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong
tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong
tap 1énh vadit liéu két hop. Néu b6 nhé dém tap lénh khong bao gém trong

khong bao gém trong hé thong, khi d6 phai co it nhat mét b6 nhé ket hop dugc cung cap cho bé xir ly NIOS II/F va NIOS II/S. B6 nho onchip cing cé thé dugc truy xuat qua mang lwéi Evelon. Thiét bi b6 nhé offchip nhu chip SRAM, SDRAM va bé nhé flash cé thé dugc truy xuat bang giao dién thich hop. Thiét bi I/O dugc Map bé nhé cé thé truy xuat nhu xac dinh truy xuat b6 nhé. Dit liéu truy xuattéi vi tri b6 nhoé va giao dién I/O dugc thyc hién gianh cho lénh load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang.

load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN
load vastore, di li¢u dugc chuyén déi bé nhé va thanh ghi da nang. SVTH: NGUYEN

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN General purpose Instruction bus selector logic Data

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN General purpose Instruction bus selector logic Data
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN General purpose Instruction bus selector logic Data
General purpose Instruction bus selector logic Data busselector logic Instruction Data cache cache Avalon switch
General purpose
Instruction bus selector logic
Data busselector logic
Instruction
Data
cache
cache
Avalon switch fabric
Tightly coupled
Memory
vo
Tightly coupled
instruction memory
interface
interface
data memory
Memory
VO
device
device

Hinh 1.3.1 T6 Chive B6 Nhé Va VO

Memory VO device device Hinh 1.3.1 T6 Chive B6 Nhé Va VO 1.3.4. Dia Chi. Bo
Memory VO device device Hinh 1.3.1 T6 Chive B6 Nhé Va VO 1.3.4. Dia Chi. Bo
Memory VO device device Hinh 1.3.1 T6 Chive B6 Nhé Va VO 1.3.4. Dia Chi. Bo

1.3.4. Dia Chi.

device Hinh 1.3.1 T6 Chive B6 Nhé Va VO 1.3.4. Dia Chi. Bo xu ly NIOS

Bo xu ly NIOS II dua ra dia chi 32bit. Khong gian b6 nho 1a 32 dia chi cho phép. Cac lénh cé thé doc va ghi dit liéu word(32bit), halfword(16bit), hoc byte 8bit. Viéc doc va ghi mét dia chi khong tuong img vdi mét b6 nhé dang ton tai hoac vi tri I/O cho ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua

ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:

Ta:

ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:
ra métkét qua khéng xac dinh. Cé nam ché dé dia chi dugc dua Ta: SVTH:

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN > Ché dé titc thdi: mét toan

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN > Ché dé titc thdi: mét toan
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN > Ché dé titc thdi: mét toan

>

Ché dé titc thdi: mét toan han 16bit dugc ghi vao tap lénh. Gia tri
Ché dé titc thdi: mét toan han 16bit dugc ghi vao tap lénh. Gia tri nay cé
thé mo rong dé cho ra mét todn han 32bit trong tap lénh ma thuc hién
cac phép toan sé hoc.

Ché d6 thanh ghi: toan han trong thanh ghi xt ly.32bit trong tap lénh ma thuc hién cac phép toan sé hoc. Ché dé thay thé:

sé hoc. Ché d6 thanh ghi: toan han trong thanh ghi xt ly. Ché dé thay

Ché dé thay thé: dia chi dang tén tai cua toan han duoc cong vao ndi dung cua mét thanh ghi vao m6tgia tri thay thé 16bit ghi vao trong tap lénh.sé hoc. Ché d6 thanh ghi: toan han trong thanh ghi xt ly. Ché d6 thanh

ghi vao m6tgia tri thay thé 16bit ghi vao trong tap lénh. Ché d6 thanh ghi
ghi vao m6tgia tri thay thé 16bit ghi vao trong tap lénh. Ché d6 thanh ghi
ghi vao m6tgia tri thay thé 16bit ghi vao trong tap lénh. Ché d6 thanh ghi

Ché d6 thanh ghi gian tiép: dia chi dang tén tai cua mét toan han 1a ndighi vao m6tgia tri thay thé 16bit ghi vao trong tap lénh. dung cua mot thanh

gian tiép: dia chi dang tén tai cua mét toan han 1a ndi dung cua mot

dung cua mot thanh ghi dugc chi dinh trong tap lénh.

1a ndi dung cua mot thanh ghi dugc chi dinh trong tap lénh. Ché dé tuyét

Ché dé tuyét déi: mOt dia chi tuyét d6i 16bit cha mét todn han cé thé duge chi dinh bang cach dung ché d6 thay thé voi thanh ghi RO luén luén cé gia tri bang 0.1a ndi dung cua mot thanh ghi dugc chi dinh trong tap lénh. 3.5. Tap Lénh

thay thé voi thanh ghi RO luén luén cé gia tri bang 0. 3.5. Tap Lénh
thay thé voi thanh ghi RO luén luén cé gia tri bang 0. 3.5. Tap Lénh
thay thé voi thanh ghi RO luén luén cé gia tri bang 0. 3.5. Tap Lénh
thay thé voi thanh ghi RO luén luén cé gia tri bang 0. 3.5. Tap Lénh
thay thé voi thanh ghi RO luén luén cé gia tri bang 0. 3.5. Tap Lénh
thay thé voi thanh ghi RO luén luén cé gia tri bang 0. 3.5. Tap Lénh
3.5. Tap Lénh Tat ca cac lénh cua NIOS Il cé d6 dai 32bit. Cac
3.5.
Tap Lénh
Tat ca cac lénh cua NIOS Il cé d6 dai 32bit. Cac 1énh nay duoc thuc hién truc
tiép bdi b6 xtr ly. Cac lénh NIOSII bao g6m méts6 caclénh gia c6 thé duoc ding
trong ng6n ngit lap trinh hop ngit. chong trinh bién dich hop ngit thay thé cac 1énh
gia bang m6t hoac nhiéu cac lénh may. Co ba Jénh cé thé dinh dang: kiéu I, kiéu R

va kiéu J. Trong tat ca cdc trudng hop B[5:0] ding cho OP code. Cac bit cén lai

ca cdc trudng hop B[5:0] ding cho OP code. Cac bit cén lai dugc str dung
dugc str dung cho thanh ghi chi dinh, toan han tic thoi hoac OP code
dugc str dung cho thanh ghi chi dinh, toan han tic thoi hoac OP code mo rong.
> kiéu I: 5 bit A va B duge sit dung dé chi dinh thanh ghi da nang 16bit
IMM 16 duara dit liéu tic thoi cd thé mo rong cho ra toan han 32bit.

> Kiéu R: 5 bit A, B va C chi dinh thanh ghi da nang. 11bit OPX ding dé

bit A, B va C chi dinh thanh ghi da nang. 11bit OPX ding dé mo

mo rong OP code.

dinh thanh ghi da nang. 11bit OPX ding dé mo rong OP code. > Kiéu J:

> Kiéu J: 26 bit IMM26 chia gia tri Unsign tic thoi. dinh dang nay chi dugc dung trong goi lénh.

gia tri Unsign tic thoi. dinh dang nay chi dugc dung trong goi lénh. SVTH: NGUYEN
gia tri Unsign tic thoi. dinh dang nay chi dugc dung trong goi lénh. SVTH: NGUYEN
gia tri Unsign tic thoi. dinh dang nay chi dugc dung trong goi lénh. SVTH: NGUYEN
gia tri Unsign tic thoi. dinh dang nay chi dugc dung trong goi lénh. SVTH: NGUYEN
gia tri Unsign tic thoi. dinh dang nay chi dugc dung trong goi lénh. SVTH: NGUYEN
gia tri Unsign tic thoi. dinh dang nay chi dugc dung trong goi lénh. SVTH: NGUYEN

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee 31 27 26 22 21 6

GVHD :Th.S HUYNH HOU THUAN

ee

31 27 26 22 21 6 5 0 A B IMMED 16 OP (a) L-type
31
27
26
22
21
6
5
0
A B
IMMED 16
OP
(a)
L-type
31
27
26
22
21
17
16
6
5
0
A B
c
OPX
OP
(b)
R-type
31
6
5
0
IMMED26
OP
(c)
J-type

Hinh 1.3.2 cdc dinh dang cilia cic tap lénh NIOS IT

J-type Hinh 1.3.2 cdc dinh dang cilia cic tap lénh NIOS IT 1.4 Board DE2 4.1,
J-type Hinh 1.3.2 cdc dinh dang cilia cic tap lénh NIOS IT 1.4 Board DE2 4.1,
J-type Hinh 1.3.2 cdc dinh dang cilia cic tap lénh NIOS IT 1.4 Board DE2 4.1,
J-type Hinh 1.3.2 cdc dinh dang cilia cic tap lénh NIOS IT 1.4 Board DE2 4.1,
J-type Hinh 1.3.2 cdc dinh dang cilia cic tap lénh NIOS IT 1.4 Board DE2 4.1,
1.4 Board DE2
1.4 Board DE2
4.1, Tinh ning cia mech DE2
4.1, Tinh ning cia mech DE2

Tinh ning cua mach DE2 1a chip Cyclone® II 2C35 FPGA trong goi pin 672. Tat ca cdc thanh phan quan trong trén mach duge két néi véi cdc pin cua con chip nay,

trén mach duge két néi véi cdc pin cua con chip nay, cho phép ngwii sir
trén mach duge két néi véi cdc pin cua con chip nay, cho phép ngwii sir
trén mach duge két néi véi cdc pin cua con chip nay, cho phép ngwii sir
cho phép ngwii sir dung didu kién tat cd cdc b6 phan bén ngoai cua
cho phép ngwii sir dung didu kién tat cd cdc b6 phan bén ngoai cua qué trinh hoat déng
cua mach. Cuéc thir nghiém don gian, mach DE2 bao gém mé@t sé kha ning cua
switches, LEDsva hién thi 7 doan. Cuécthi nghiém cao hon c6 SRAM, SDRAM, va
chip bé nhé Flash,ciing nhu hién thi ky ty 16x2. Nhitng cuéc thi nghiém phy thudc
vao b6 xit ly va giao dién VO don gidn. Didu nay thi dé dé dign gidi cho b6 xi ly
Altera s Nios II va str dyng giao dién chudn nhw giao dién chudn RS-232 va PS/2.
Cuéc thi nghiém bao gém tinh higu am thanh va video, cé bé két néi chudn nh1a
microphone,line-in, line-out (24-bit audio CODEC), video in (TV Decoler), va VGA
(10-bit DAC); Nhiing tinh nang nay c6 thé duge sir dung dé tao ra tng dung audio

CD-quality. Dy 4n thiét ké DE2 lén hon cung cap két néi USB 2.0 (ca may chu va

ké DE2 lén hon cung cap két néi USB 2.0 (ca may chu va thiét bi),

thiét bi), 10/100 Ethernet, va céng héng ngoai (IrDA) va mét két ndi thé nhé SD. Néi

céng héng ngoai (IrDA) va mét két ndi thé nhé SD. Néi tom lai, né c6
céng héng ngoai (IrDA) va mét két ndi thé nhé SD. Néi tom lai, né c6

tom lai, né c6 thé két ndi khdc do ngudi ding qui dinh téi mach DE2

tom lai, né c6 thé két ndi khdc do ngudi ding qui dinh téi mach DE2
tom lai, né c6 thé két ndi khdc do ngudi ding qui dinh téi mach DE2
tom lai, né c6 thé két ndi khdc do ngudi ding qui dinh téi mach DE2
tom lai, né c6 thé két ndi khdc do ngudi ding qui dinh téi mach DE2
tom lai, né c6 thé két ndi khdc do ngudi ding qui dinh téi mach DE2

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee Hinh 1.4.1 Board DE2 1.4.2, Théng

GVHD :Th.S HUYNH HOU THUAN

ee

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee Hinh 1.4.1 Board DE2 1.4.2, Théng
Hinh 1.4.1 Board DE2
Hinh 1.4.1 Board DE2

1.4.2, Théng sé kj thugt

:Th.S HUYNH HOU THUAN ee Hinh 1.4.1 Board DE2 1.4.2, Théng sé kj thugt SVTH: NGUYEN
:Th.S HUYNH HOU THUAN ee Hinh 1.4.1 Board DE2 1.4.2, Théng sé kj thugt SVTH: NGUYEN
:Th.S HUYNH HOU THUAN ee Hinh 1.4.1 Board DE2 1.4.2, Théng sé kj thugt SVTH: NGUYEN
:Th.S HUYNH HOU THUAN ee Hinh 1.4.1 Board DE2 1.4.2, Théng sé kj thugt SVTH: NGUYEN
:Th.S HUYNH HOU THUAN ee Hinh 1.4.1 Board DE2 1.4.2, Théng sé kj thugt SVTH: NGUYEN

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN 50Mhz / 27Mhz/ Extin ¥v USB 2.0

GVHD :Th.S HUYNH HOU THUAN

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN 50Mhz / 27Mhz/ Extin ¥v USB 2.0
pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN 50Mhz / 27Mhz/ Extin ¥v USB 2.0
50Mhz / 27Mhz/ Extin ¥v USB 2.0 Host/Device Mj >| 16-bit Audio CODEC 10/100 Ethernet
50Mhz / 27Mhz/ Extin
¥v
USB 2.0 Host/Device
Mj >| 16-bit Audio CODEC
10/100 Ethernet Phy/MAC
} VGA 10-bit Video DAC
SD Card
j | TV Decoder
CycloneIl
IrDA Transceiver
§ -
E PGA
< $< <$$| User Green LEDs (8)
Flash (1 Mbyte)
e
9C35
p e| UserRed LEDs (18)
SDRAM (8 Mbytes)
ad
P| 16x 2 LCD Module
SRAM (512 Kbytes)
+ _>| PS2 & RS-232 Ports
T-SegmentDisplay (8) a
Expansion Headers (2)
Md } Toggle Switches (18)
Pushbutton Switches(4)
=]
IEE

FPGA

Hinh 1.4.2 Biéu Dd Khéi Cia Board DE2

=] IEE FPGA Hinh 1.4.2 Biéu Dd Khéi Cia Board DE2 > Cyclone Il EP2C35F672C6 FPGA
=] IEE FPGA Hinh 1.4.2 Biéu Dd Khéi Cia Board DE2 > Cyclone Il EP2C35F672C6 FPGA
> Cyclone Il EP2C35F672C6 FPGA va EPCF16 va thiét bj cau hinh serial Thiét bj
>
Cyclone Il EP2C35F672C6 FPGA va EPCF16 va thiét bj cau hinh serial
Thiét bj YO

> Dugc xdy dung trén USB Blaster cho FPGA

Thiét bj YO > Dugc xdy dung trén USB Blaster cho FPGA > Céng Ethenet1 0/100

> Céng Ethenet1 0/100 RS-232, céng héng ngoai

FPGA > Céng Ethenet1 0/100 RS-232, céng héng ngoai > Video-out (VGA 10- bit DAC) >

> Video-out (VGA 10- bit DAC)

RS-232, céng héng ngoai > Video-out (VGA 10- bit DAC) > Video-in (NTSC/PAL/ Multi format) >

> Video-in (NTSC/PAL/ Multi format)

(VGA 10- bit DAC) > Video-in (NTSC/PAL/ Multi format) > USB 2.0kiéu A kiéuB > Céng

> USB 2.0kiéu A kiéuB

(NTSC/PAL/ Multi format) > USB 2.0kiéu A kiéuB > Céng PS/2 cho chuét va ban phiém

> Céng PS/2 cho chuét va ban phiém

2.0kiéu A kiéuB > Céng PS/2 cho chuét va ban phiém > Line-in, line-out, microphone-in, 24bit

> Line-in, line-out, microphone-in, 24bit audio CODEC

> Line-in, line-out, microphone-in, 24bit audio CODEC > Moréng phan dau(76 chan tin hiéu) SVTH: NGUYEN

> Moréng phan dau(76 chan tin hiéu)

24bit audio CODEC > Moréng phan dau(76 chan tin hiéu) SVTH: NGUYEN MINH HIEU - HUYNH
24bit audio CODEC > Moréng phan dau(76 chan tin hiéu) SVTH: NGUYEN MINH HIEU - HUYNH
24bit audio CODEC > Moréng phan dau(76 chan tin hiéu) SVTH: NGUYEN MINH HIEU - HUYNH
24bit audio CODEC > Moréng phan dau(76 chan tin hiéu) SVTH: NGUYEN MINH HIEU - HUYNH
24bit audio CODEC > Moréng phan dau(76 chan tin hiéu) SVTH: NGUYEN MINH HIEU - HUYNH

pO AN TOT NGHIEP

pO AN TOT NGHIEP GVHD :Th.S HUYNH HOU THUAN ee Memory > 8 MB SDRAM, 512

GVHD :Th.S HUYNH HOU THUAN

ee

Memory
Memory

> 8 MB SDRAM, 512 KB SRAM, 4 MBFlash

HOU THUAN ee Memory > 8 MB SDRAM, 512 KB SRAM, 4 MBFlash > Khe cam

> Khe cam thé nhé SD

MB SDRAM, 512 KB SRAM, 4 MBFlash > Khe cam thé nhé SD Switches, LEDs, Displays,
Switches, LEDs, Displays, and Clocks
Switches, LEDs, Displays, and Clocks

> 18 switch

nhé SD Switches, LEDs, Displays, and Clocks > 18 switch > 4 mit dn debuonced switch

> 4 mit dn debuonced switch

and Clocks > 18 switch > 4 mit dn debuonced switch > 18 LED dé, 9
> 18 LED dé, 9 LED xanh > 8 hién thj 7 doan
> 18 LED dé, 9 LED xanh
> 8 hién thj 7 doan

> Hién thiLCD 16x2

9 LED xanh > 8 hién thj 7 doan > Hién thiLCD 16x2 > Bé6tao dao

> Bé6tao dao dng 27MHz va 50 MHz, ngé vao clock SMA bén ngoai.

dao dng 27MHz va 50 MHz, ngé vao clock SMA bén ngoai. Hinh 1.4.3 cha board
dao dng 27MHz va 50 MHz, ngé vao clock SMA bén ngoai. Hinh 1.4.3 cha board

Hinh 1.4.3 cha board DE2 chi ra cach bé tri va vi tri chi dinh cla cdc thanh phan trén board DE2.

tri va vi tri chi dinh cla cdc thanh phan trén board DE2. UsB Usa USB
tri va vi tri chi dinh cla cdc thanh phan trén board DE2. UsB Usa USB
tri va vi tri chi dinh cla cdc thanh phan trén board DE2. UsB Usa USB
UsB Usa USB Ethernet Blaster Device Host Mic Ling Line Video VGA Video 10/00M Pot
UsB
Usa
USB
Ethernet
Blaster Device Host Mic Ling Line Video VGA Video
10/00M
Pot
Pot
Pot
in
in
Ga
In
Post
Port
RS-232 Port
Lert Litt
1
!
J
27-MtzOscar
rR
24-04AudioCodec
}
=> PS/2 Keyooard/Mouse Port
PonerON/OFF Smiter
VGA {Obit DAC
USBHostSiaveContraller
TV Decoder (NTSCIPAL)
Eternet 10/100MControier
ExpansionHeader2.(.P2)
Aliera USBBlaster Controller
Chipset
m
ExpansionHeader1Pt)
AlteraEPCS! Configuration Device
Alera CycloneIIFPGA,
RUN'PROGSwitch forJTAGIASNodes
6x2 LCD Module
80 Card Siot
7-SegmertDisplays
8GreenLEDs
1 RedLEDS
lFDATranseaivat
SMA ExtemalClock
18 Toggle Switches
4 DebouncadPushbutionSwitches
S0-MHzOscillator
BAMBSORAM 512-48SRAM 4.MB FlashNamery
Hinh 1.4.2. Board DE2 cija Altera.
Hinh 1.4.2. Board DE2 cija Altera.
BAMBSORAM 512-48SRAM 4.MB FlashNamery Hinh 1.4.2. Board DE2 cija Altera. SVTH: NGUYEN MINH HIEU - HUYNH
BAMBSORAM 512-48SRAM 4.MB FlashNamery Hinh 1.4.2. Board DE2 cija Altera. SVTH: NGUYEN MINH HIEU - HUYNH
BAMBSORAM 512-48SRAM 4.MB FlashNamery Hinh 1.4.2. Board DE2 cija Altera. SVTH: NGUYEN MINH HIEU - HUYNH

WV

VW

VW

VW

VW

VW

VV

Vv

Vv

WV

WV

VV

Vv

Vv

Vv

DO AN TOT NGHIEP

WV VW VW VW VW VW VV Vv Vv WV WV VV Vv Vv Vv DO

GVHD: Th.S HUYNH HUU THUAN

WV VV Vv Vv Vv DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Board DE2
WV VV Vv Vv Vv DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Board DE2

Board DE2 cé nhiéu dic diém cho phép ngudi siz dung cé thé thiét ké va thuc

diém cho phép ngudi siz dung cé thé thiét ké va thuc thi cdc machtir don
diém cho phép ngudi siz dung cé thé thiét ké va thuc thi cdc machtir don
diém cho phép ngudi siz dung cé thé thiét ké va thuc thi cdc machtir don
diém cho phép ngudi siz dung cé thé thiét ké va thuc thi cdc machtir don
diém cho phép ngudi siz dung cé thé thiét ké va thuc thi cdc machtir don

thi cdc machtir don gian dén phitctap.

thiét ké va thuc thi cdc machtir don gian dén phitctap. Sau day 1a cdc phan
thiét ké va thuc thi cdc machtir don gian dén phitctap. Sau day 1a cdc phan
thiét ké va thuc thi cdc machtir don gian dén phitctap. Sau day 1a cdc phan
thiét ké va thuc thi cdc machtir don gian dén phitctap. Sau day 1a cdc phan
thiét ké va thuc thi cdc machtir don gian dén phitctap. Sau day 1a cdc phan

Sau day 1a cdc phan cimg duoc board DE2 cungcap:

phitctap. Sau day 1a cdc phan cimg duoc board DE2 cungcap: > Altera Cyclone II 2C35

>

Altera Cyclone II 2C35 FPGA.
Altera Cyclone II 2C35 FPGA.
Altera Serial Configuration device-EPCS-16.
Altera Serial Configuration device-EPCS-16.

Cac céng USB.

Altera Serial Configuration device-EPCS-16. Cac céng USB. SRAM 512 Kbyte. SDRAM 8 Mbyte. Flash memory 4
SRAM 512 Kbyte.
SRAM 512 Kbyte.
SDRAM 8 Mbyte.
SDRAM 8 Mbyte.
Flash memory 4 Mbyte.
Flash memory 4 Mbyte.
SD card socket.
SD card socket.
4 SW nhan. 18 SW day. 18 LEDs do. VW VW
4 SW nhan.
18 SW day.
18
LEDs do.
VW
VW
9 LEDs xanh.
9
LEDs xanh.
Clock source dao d6éng S5OMH va 27 MHz.
Clock source dao d6éng S5OMH va 27 MHz.
24 bit CD-quality audio CODEC v06i cac jack line-in,line-
24
bit CD-quality
audio
CODEC
v06i
cac jack
line-in,line-
out,microphone.
out,microphone.

VGA DACv6idau két noi VGA-out.

out,microphone. VGA DACv6idau két noi VGA-out. TV Decoder va dau két néi TV-in. Céng Ethenet 10/100.
out,microphone. VGA DACv6idau két noi VGA-out. TV Decoder va dau két néi TV-in. Céng Ethenet 10/100.
TV Decoder va dau két néi TV-in.
TV Decoder va dau két néi TV-in.

Céng Ethenet 10/100.

TV Decoder va dau két néi TV-in. Céng Ethenet 10/100. Céng RS232 9 pin. Céng SP/2.

Céng RS232 9 pin. Céng SP/2.

TV-in. Céng Ethenet 10/100. Céng RS232 9 pin. Céng SP/2. Céng hong ngoai IrDA. 2 Expension
TV-in. Céng Ethenet 10/100. Céng RS232 9 pin. Céng SP/2. Céng hong ngoai IrDA. 2 Expension

Céng hong ngoai IrDA.

Céng RS232 9 pin. Céng SP/2. Céng hong ngoai IrDA. 2 Expension Heard 40 pin. SVTH:
2 Expension Heard 40 pin.
2
Expension Heard 40 pin.
9 pin. Céng SP/2. Céng hong ngoai IrDA. 2 Expension Heard 40 pin. SVTH: NGUYEN MINH
9 pin. Céng SP/2. Céng hong ngoai IrDA. 2 Expension Heard 40 pin. SVTH: NGUYEN MINH
9 pin. Céng SP/2. Céng hong ngoai IrDA. 2 Expension Heard 40 pin. SVTH: NGUYEN MINH

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 1.4.3. Nhieng Vi Du Vé Nhitng eng

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 1.4.3. Nhieng Vi Du Vé Nhitng eng
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN 1.4.3. Nhieng Vi Du Vé Nhitng eng

1.4.3.

Nhieng Vi Du Vé Nhitng eng Dung Cao Cap

HUU THUAN 1.4.3. Nhieng Vi Du Vé Nhitng eng Dung Cao Cap Mach DE2cé thé duge
HUU THUAN 1.4.3. Nhieng Vi Du Vé Nhitng eng Dung Cao Cap Mach DE2cé thé duge
Mach DE2cé thé duge str dung dé thuc thi nhimg phan loai r6ng cua nhitng
Mach DE2cé thé duge str dung dé thuc thi nhimg phan loai r6ng cua nhitng du
an thiét ké.

Ung dung TV box

phan loai r6ng cua nhitng du an thiét ké. Ung dung TV box ry Video ln
ry Video ln 7 Line Out Line In _ S= = CVBS VGA Out S-Video
ry
Video ln
7
Line Out
Line In
_ S=
=
CVBS
VGA Out
S-Video
YPbPr
Output
VGA (LCD/CRT) Monitor
YCbCr (YUV)
to
RGB
)

>

>

>

>

>

Hinh 1.4.3 Ung Dung TV Box

) > > > > > Hinh 1.4.3 Ung Dung TV Box Giai ma TV chat

Giai ma TV chat luong cao

> Hinh 1.4.3 Ung Dung TV Box Giai ma TV chat luong cao Chat luong CD

Chat luong CD 4m thanh 24 bit

Box Giai ma TV chat luong cao Chat luong CD 4m thanh 24 bit Man hinh
Man hinh VGA
Man hinh VGA

Dungtiéu chuan cho tng dung cho video

24 bit Man hinh VGA Dungtiéu chuan cho tng dung cho video Tat cd ma nguéndriver

Tat cd ma nguéndriver phan mém cho Nios® II

cho video Tat cd ma nguéndriver phan mém cho Nios® II USB Mouse Paintbrush > Su
USB Mouse Paintbrush
USB Mouse Paintbrush

>

Su dung céng USB 2.0 trén mach DE2

II USB Mouse Paintbrush > Su dung céng USB 2.0 trén mach DE2 SVTH: NGUYEN MINH
II USB Mouse Paintbrush > Su dung céng USB 2.0 trén mach DE2 SVTH: NGUYEN MINH
II USB Mouse Paintbrush > Su dung céng USB 2.0 trén mach DE2 SVTH: NGUYEN MINH
II USB Mouse Paintbrush > Su dung céng USB 2.0 trén mach DE2 SVTH: NGUYEN MINH

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN VGAOut . USB Device DE2 Board ORS

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN VGAOut . USB Device DE2 Board ORS
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN VGAOut . USB Device DE2 Board ORS

VGAOut .

USB Device DE2 Board ORS =} VGA Driver Controller = SRAM Video www.terasic.com FrameBuffer
USB Device
DE2 Board
ORS =}
VGA
Driver
Controller
=
SRAM
Video
www.terasic.com
FrameBuffer

VGA Monitor Hinh 1.4.4 USB Chuot Paintbrush

FrameBuffer VGA Monitor Hinh 1.4.4 USB Chuot Paintbrush > Phan mém USB maychi va thiét bj

>

Phan mém USB maychi va thiét bj cho Nios II

> Phan mém USB maychi va thiét bj cho Nios II > Cung cap vi du
> Cung cap vi du cia bé dém video SRAM Karaoke Machine va SD music
>
Cung cap vi du cia bé dém video SRAM
Karaoke Machine va SD music player
MP3/Any Audio Output Speaker Speaker _ §j 8D Card See: With music RIPPER eRe F
MP3/Any Audio Output
Speaker
Speaker
_
§j 8D Card
See: With music
RIPPER eRe
F
ado
:
files(WAV)
Microphone
ep ae
ebeihh
Frequency
Controller
BFL
Generator
Hinh 1.4.5 Karaoke Machine va SD Music Player
Hinh 1.4.5 Karaoke Machine va SD Music Player

>

>

>

CD chat lugng 4m thanh 24 bit

Music Player > > > CD chat lugng 4m thanh 24 bit Ding tiéu chuan cho

Ding tiéu chuan cho tng dung audio

lugng 4m thanh 24 bit Ding tiéu chuan cho tng dung audio Tat cd ma nguéndriver

Tat cd ma nguéndriver phan mém cho Nios® II

chuan cho tng dung audio Tat cd ma nguéndriver phan mém cho Nios® II SVTH: NGUYEN
chuan cho tng dung audio Tat cd ma nguéndriver phan mém cho Nios® II SVTH: NGUYEN
chuan cho tng dung audio Tat cd ma nguéndriver phan mém cho Nios® II SVTH: NGUYEN
chuan cho tng dung audio Tat cd ma nguéndriver phan mém cho Nios® II SVTH: NGUYEN

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Chuong IT Audio Codec W8731/L 11.1 Giéi

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Chuong IT Audio Codec W8731/L 11.1 Giéi
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Chuong IT Audio Codec W8731/L 11.1 Giéi

Chuong IT

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Chuong IT Audio Codec W8731/L 11.1 Giéi
Audio Codec W8731/L
Audio Codec W8731/L
11.1 Giéi Thigu Ve AUDIO CODEC W8731/L
11.1 Giéi Thigu Ve AUDIO CODEC W8731/L

WM8731 la mét audio CODEC cong suat thap duoc thiét ké dic biét cho san

audio CODEC cong suat thap duoc thiét ké dic biét cho san pham audio linh dong.

pham audio linh dong. No tién loi va tiéu thu dién 4p thap pha hop cho y tuéng tao ra nhiing san pham MP3 Player va Mini-disc Player.

tao ra nhiing san pham MP3 Player va Mini-disc Player. CODEC bao gém nhitng duong va
tao ra nhiing san pham MP3 Player va Mini-disc Player. CODEC bao gém nhitng duong va

CODEC bao gém nhitng duong va ngd vao microphone téi ADC on-board, dudng va ngé ra headphone tir DAC on board, mét may tao dao déng, dinh cau hinh giao dién digital audio va lua chon giao dién diéu khién 2 hay 3 day MPU. No hoan toan tuong thich la mdt y tudéng két hop cho mot phan cua b6é vi xu ly, mach diéu khién, va DSP chuan cong nghiép.

b6é vi xu ly, mach diéu khién, va DSP chuan cong nghiép. CODEC bao gom 3
b6é vi xu ly, mach diéu khién, va DSP chuan cong nghiép. CODEC bao gom 3
b6é vi xu ly, mach diéu khién, va DSP chuan cong nghiép. CODEC bao gom 3
b6é vi xu ly, mach diéu khién, va DSP chuan cong nghiép. CODEC bao gom 3
b6é vi xu ly, mach diéu khién, va DSP chuan cong nghiép. CODEC bao gom 3
b6é vi xu ly, mach diéu khién, va DSP chuan cong nghiép. CODEC bao gom 3
b6é vi xu ly, mach diéu khién, va DSP chuan cong nghiép. CODEC bao gom 3
CODEC bao gom 3 loai tin hiéu vao mono microphonevastereo line. Line tin
CODEC bao gom 3 loai tin hiéu vao mono microphonevastereo line. Line tin

hiéu vao cé thé diéu chinh cp d6 4m thanh ti +12dB téi -34dB va mute. Tin hiéu vao

cp d6 4m thanh ti +12dB téi -34dB va mute. Tin hiéu vao microphone co thé
cp d6 4m thanh ti +12dB téi -34dB va mute. Tin hiéu vao microphone co thé

microphone co thé diéu chinh ti -6dB dén 34dB. Tat ca quy dinh b6 loc tin higu vao

chinh ti -6dB dén 34dB. Tat ca quy dinh b6 loc tin higu vao duge chira
chinh ti -6dB dén 34dB. Tat ca quy dinh b6 loc tin higu vao duge chira
chinh ti -6dB dén 34dB. Tat ca quy dinh b6 loc tin higu vao duge chira
chinh ti -6dB dén 34dB. Tat ca quy dinh b6 loc tin higu vao duge chira

duge chira vao trong thiét bi khong cé thanh phan bén ngoai quy dinh.

trong thiét bi khong cé thanh phan bén ngoai quy dinh. BO chuyén déitin hiéu tuong

BO chuyén déitin hiéu tuong ty sang tin hiéu s6 trén 4m thanh ndi on-board 1a chat luong cao dung nhiéu bit bac cao trén viéc mau cau trac phan phdi thuc thi tét nhat ma tiéu thu nang lvong thap. Tin hiéu ngé ra tir ADC cé san trén giao dién audio tin higu so. ADC bao gdm mottin higu so thy chon cao qua b6 loc tdi

so. ADC bao gdm mottin higu so thy chon cao qua b6 loc tdi audio. ADC
so. ADC bao gdm mottin higu so thy chon cao qua b6 loc tdi audio. ADC
so. ADC bao gdm mottin higu so thy chon cao qua b6 loc tdi audio. ADC
so. ADC bao gdm mottin higu so thy chon cao qua b6 loc tdi audio. ADC
so. ADC bao gdm mottin higu so thy chon cao qua b6 loc tdi audio. ADC

audio.

ADC bao gém mottuy chon sé ding gd bd phan khéng cAnthiét tir tin hiéu

chon sé ding gd bd phan khéng cAnthiét tir tin hiéu Bo chuyén déi tin hiéu
chon sé ding gd bd phan khéng cAnthiét tir tin hiéu Bo chuyén déi tin hiéu
chon sé ding gd bd phan khéng cAnthiét tir tin hiéu Bo chuyén déi tin hiéu

Bo chuyén déi tin hiéu sé sang tuong tu on-board chap nhan tin hiéu s6 audio

sé sang tuong tu on-board chap nhan tin hiéu s6 audio tir giao dién tin hiéu
sé sang tuong tu on-board chap nhan tin hiéu s6 audio tir giao dién tin hiéu

tir giao dién tin hiéu sé audio. B6loc tin hiéu sé 6 32 kHz, 44.1 kHz, 48 kHz cé thé ap

B6loc tin hiéu sé 6 32 kHz, 44.1 kHz, 48 kHz cé thé ap dung dir
B6loc tin hiéu sé 6 32 kHz, 44.1 kHz, 48 kHz cé thé ap dung dir

dung dir liéu tin higu so dudi dang phan mém diéu khién. DAC tan dung kiéu cau trac oversampling da tang - kha cao- c6 chat luong tét dé thuc hién céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong

céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH
céng viéc véi hiéu suat tot nhat malai tiéu thu it nang luong SVTH: NGUYEN MINH

DO AN TOT NGHIEP

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Tin higu ra DAC, microphone (SIDETONE) va

GVHD: Th.S HUYNH HUU THUAN

DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Tin higu ra DAC, microphone (SIDETONE) va
DO AN TOT NGHIEP GVHD: Th.S HUYNH HUU THUAN Tin higu ra DAC, microphone (SIDETONE) va

Tin higu ra DAC, microphone (SIDETONE) va Line ngé vao (BYPASS) duge

ra DAC, microphone (SIDETONE) va Line ngé vao (BYPASS) duge cung cap san ca 2 mirc
ra DAC, microphone (SIDETONE) va Line ngé vao (BYPASS) duge cung cap san ca 2 mirc

cung cap san ca 2 mirc line va m6t b6 khuéch dai 4m thanh headphone. Am luong tin

line va m6t b6 khuéch dai 4m thanh headphone. Am luong tin hiéu ra headphoneco thé