No BSD License  

Highlights from
Canonical Signed Digits

4.0

4.0 | 3 ratings Rate this file 12 Downloads (last 30 days) File Size: 4.51 KB File ID: #9730

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

very useful

29 Apr 2008 Rolo oloR

This is simple and easy to use.

06 Oct 2009 Joe

When the precision is not enough, I suggest to use "round" instead of "floor" to get better approximation.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
filter design Patrick Moran 22 Oct 2008 08:13:29
filter analysis Patrick Moran 22 Oct 2008 08:13:29
canonical signed digit Cristina McIntire 23 Feb 2009 15:07:06
cds Cristina McIntire 23 Feb 2009 15:07:06
fixed point Cristina McIntire 23 Feb 2009 15:07:06
filter Cristina McIntire 23 Feb 2009 15:07:06
canonical signed digit tang 12 Apr 2009 09:28:44
canonical signed digit Kai-Wun 05 Oct 2011 12:40:18

Contact us at files@mathworks.com