Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to truncate a vector signal?

Status
Not open for further replies.

John1984

Technical User
Aug 23, 2006
1
GR
Gentlemen, I need your help: I have a 56 bit signal and I want to truncate it to 24 bits. I am using the fixed point format 2Q22. I want to truncate all 1's until I find a 0. The first two digits are the integer part and the rest 22 is what remains from the reset, truncating any excessive bit too.

For example:
11111111101000011111111100000000000000001111111111110000
(this binary number has 56 bits)

This must be truncaded to 01.0000111111111000000000 (the comma is for practical purposes only).

Thank you very much for your time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top