{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

113D_1_week2notes

# 113D_1_week2notes - DSP Programming by Algebraic Assembly...

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

DSP Programming by Algebraic Assembly EE113D Week 2 Rick Huang

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

View Full Document
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
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

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

View Full Document
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
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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online