20.01.2014 Views

Digital aritmetik: Multiplikation och division. Talrepresentation

Digital aritmetik: Multiplikation och division. Talrepresentation

Digital aritmetik: Multiplikation och division. Talrepresentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Fixed-Point<br />

Q2-Representation<br />

000<br />

111<br />

0<br />

001<br />

-0.25<br />

0.25<br />

110<br />

-0.5<br />

0.5<br />

010<br />

-0.75 0.75<br />

101 -1 011<br />

100<br />

p. 29 - IE1204 <strong>Digital</strong> Design - F6 - Johnny Öberg, ICT/ES<br />

<strong>Multiplikation</strong> i Q-formatet<br />

• <strong>Multiplikation</strong> orsakar inte overflow i Q-formatet, men kan resultera i<br />

förlust av precision<br />

(1.10) 2 * (0.11) 2<br />

= (1.1010) 2 (Q4-format)<br />

= (1.10) 2 (Q2-format)<br />

Generellt:<br />

b 2 b 1 b 0<br />

Q2<br />

*<br />

b 2 b 1 b 0<br />

Q2<br />

Utökade teckenbitar<br />

b 5<br />

b 4 b 3 b 2 b 1 b 0<br />

Q4<br />

p. 30 - IE1204 <strong>Digital</strong> Design - F6 - Johnny Öberg, ICT/ES

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!