Canonical Signed Digits
by Patrick Moran
23 Jan 2006
(Updated 24 Jan 2006)
Generates a CSD representation of a floating point number.
|
Watch this File
|
| File Information |
| Description |
Canonical-signed-digit (CSD) coefficient representations of floating point numbers lead to efficient add/subtract networks for hardwired DSP multiplies of two?s complement signals.
example csdigit(23) returns +0-00-.
Where +0-00-. is a representation of +1 in 2^5, -1 in 2^3 and -1 in 2^0 positions.
i.e. 23 = 32 - 8 - 1
example [a,p,n]=csdigit(23.5,6,2) returns
a = +0-000.-0
p=32
n=8.5
23.5 = 32 - 8 - 0.5 |
| MATLAB release |
MATLAB 7.0.4 (R14SP2)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 09 Jan 2007 |
paramasivam chinnusamy
|
|
|
| 21 Oct 2007 |
anantha gunnala
|
|
|
| 29 Apr 2008 |
Rolo oloR
|
|
|
| 06 Oct 2009 |
Joe
|
|
|
|
Contact us at files@mathworks.com