What is a leading zero detector?

This is a discussion on What is a leading zero detector? within the verilog forums in Programming Languages category; Didnt know where to post this but here goes What is a leading zero detector? Does it give you the number of most significant zero bits? Eg x = 8'b 00010001 should it return 3? Thanks...

Go Back   Application Development Forum > Programming Languages > verilog

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-29-2008, 11:12 AM
blakaxe@gmail.com
Guest
 
Default What is a leading zero detector?

Didnt know where to post this but here goes

What is a leading zero detector?

Does it give you the number of most significant zero bits?

Eg x = 8'b 00010001

should it return 3?


Thanks
Reply With Quote
  #2  
Old 07-29-2008, 12:18 PM
John_H
Guest
 
Default Re: What is a leading zero detector?

blakaxe@gmail.com wrote:
> Didnt know where to post this but here goes
>
> What is a leading zero detector?
>
> Does it give you the number of most significant zero bits?
>
> Eg x = 8'b 00010001
>
> should it return 3?
>
>
> Thanks


Your question is vague because there is no standard for this
function. A "detector" usually indicates presence such that your
example would return "true." The common use, however, is a "leading
zero counter" which would return 3 but is a counter, not a detector.

You have to frame the answer within the context which you haven't
provided.

- John_H
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:10 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.