CPE 229 FINAL STUDY GUIDE

CPE 229 FINAL STUDY GUIDE - C PE 229 FINAL STUDY GUIDE...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
CPE 229 FINAL STUDY GUIDE LECTURE NOTES 1 A computer is a device that sequentially executes a stored program. The two basic components of a CPU: the Control Unit and the Data Path. LECTURE NOTES 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
PICOBLAZE The line begins with “ADDRESS” as an assembler directive that tells the assembler where to place the next section of code. Has to be in hexadecimal form The “DISBABLE INTERRUPT” is an actual PicoBlaze instruction that “turns off” the interrupt feature of the PicoBlaze device. OR s0,00: does nothing(no operation); so s0 gets s0 OR “00”. This program inputs the switches and outputs the compliment of the data to the LEDS.
Background image of page 2
This program clears all buttons except button 3, by masking button 3 with 08 (0000 1000).
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 8
IF THEN/ELSE STRUCTURE ;---------------------------------------- ;- PicoBlaze source code fragment ; OR s2, 00 ; set flags JUMP NZ, jnz ; jump if s2!=0 ; XOR s2, FF ; invert JUMP jz ; uncond jump ; jnz: AND s2, 0F ; clear bits jz: OUTPUT s2 99 ; send out result ;----------------------------------------
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 11

CPE 229 FINAL STUDY GUIDE - C PE 229 FINAL STUDY GUIDE...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online