113D_1_week2notes

113D_1_week2notes - DSP Programming by Algebraic Assembly...

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

View Full Document Right Arrow Icon
DSP Programming by Algebraic Assembly EE113D Week 2 Rick Huang
Background image of page 1

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

View Full DocumentRight Arrow Icon
Week 2 EE113D EE Dept UCLA (c) RL 2 Administrative Stuff Groups members Assignments Due today Homework 1 Due next week Homework 2 (soft copy for Prob 8) Agenda Reader pg71-78 Number Systems DSP Programming Algebraic Assembly Insertion Sort Demo
Background image of page 2
Week 2 EE113D EE Dept UCLA (c) RL 3 Number Systems Decimal Human uses this. Digits: 0,1,2,…,9. Ex: 27 Binary Computer uses this. Digits: 0,1. Ex: 011100b Hexadecimal (Hex) Programmers, ease of reading. Digits: 0,1,2,…,9,A,B,…,F. Ex: 0x1C, 1Ch Dec Hex Bin Dec Hex Bin 0 0h 0000b 8 8h 1000b 1 1h 0001b 9 9h 1001b 2 2h 0010b 10 Ah 1010b 3 3h 0011b 11 Bh 1011b 4 4h 0100b 12 Ch 1100b 5 5h 0101b 13 Dh 1101b 6 6h 0110b 14 Eh 1110b 7 7h 0111b 15 Fh 1111b
Background image of page 3

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

View Full DocumentRight Arrow Icon
Week 2 EE113D EE Dept UCLA (c) RL 4 Computer Arithmetic 2’s complement 1 = 0000 0000 0000 0001b -1 = ? 1. 1 = 0000 0000 0000 0001b 2. Flip all bits 1111 1111 1111 1110b 1. Add 1 1111 1111 1111 1111b 1. -1 = 0xFFFF Addition: 1 + (-1)   0000 0000 0000 0001b + 1111 1111 1111 1111b -----------------------  1 0000 0000 0000 0000b Result is zero with infinite leading zeros
Background image of page 4
Week 2 EE113D EE Dept UCLA (c) RL 5 Computer Arithmetic Addition: 1 [40 bits] + (-1) [16 bits]   0000 0000 0000 0000 0000 0000 0000 0000 0000 0001b +                               1111 1111 1111 1111b
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/20/2009 for the course EE 113D taught by Professor Briggs during the Spring '09 term at UCLA.

Page1 / 20

113D_1_week2notes - DSP Programming by Algebraic Assembly...

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

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