Erik Jonsson School of Engineering and Computer Science

  • Slides: 23
Download presentation
Erik Jonsson School of Engineering and Computer Science EE/CE 2310 – HON/002 Introduction to

Erik Jonsson School of Engineering and Computer Science EE/CE 2310 – HON/002 Introduction to Digital Systems http: //www. utdallas. edu/~pervin Following Tuesday: Read Chapter P 6, T 10 Thursday 3 -08 -12 FEARLESS Engineering www. utdallas. edu/~pervin

Review • (T)10 Counters • (P)5 -4 Programming • (P)5 -5 Breakpoints

Review • (T)10 Counters • (P)5 -4 Programming • (P)5 -5 Breakpoints

(P) 5. 4 Programming If (<condition>) <statement-true> else <statement-false; <test condition, 0=false or 1=true

(P) 5. 4 Programming If (<condition>) <statement-true> else <statement-false; <test condition, 0=false or 1=true in $R> beqz $R, false-case <do statement-true> j next false-case: <do statement-false> next: <test condition, 0=false or 1=true in $R> bnez $R, true-case <do statement-false> j next true-case: <do statement-true> next:

for(<initialize>; <test>; <modify)<statement>; = <initialize>; while(<test>){<statement>; <modify>} <initialize> loop: <test condition, 0=false or 1=true

for(<initialize>; <test>; <modify)<statement>; = <initialize>; while(<test>){<statement>; <modify>} <initialize> loop: <test condition, 0=false or 1=true in $R> beqz $R, next <do statement> <do modifications> j loop next:

calculate. s

calculate. s

(P) 5. 5 BREAKPOINTS

(P) 5. 5 BREAKPOINTS

Following Tuesday (P 6) P 6 File and Character IO (T 10) T 10

Following Tuesday (P 6) P 6 File and Character IO (T 10) T 10 Counters Look at the assignments on the web page. If you think you have little to do, you’re wrong!

Ripple Counter

Ripple Counter

Parallel Counter

Parallel Counter

Modulo 6 Counter

Modulo 6 Counter

Decade Counter

Decade Counter

3 -bit Ripple Down Counter

3 -bit Ripple Down Counter

Chapter 6: File & Character IO It may be necessary to put any new

Chapter 6: File & Character IO It may be necessary to put any new file in the same directory that contains the program.

fileio. s

fileio. s