Sign conversion unit in verilog

Status
Not open for further replies.

emerson_11

Member level 2
Joined
Jan 23, 2016
Messages
44
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Visit site
Activity points
355
can anyone tell me what is sign conversion unit ?? since am doing a project in image processing , my coefficients has negative decimals.So , the inputs are to given to sign conversion unit from memory.can anyone tell me how to write verilog for sign conversion unit?
 

If the values are 2s compliment then no sign conversion is necessary as -ve values are already covered.
What format are all the co-efficients and pixels in?
 

decimals.like such

-2.0672007 0.73619014 -2.5984101 -2.0672007 0.15175518 1.0346824 0.24920848 -0.21099690 0.14095379 1.7241009
 

Unless you reading decimal number strings in your Verilog code, there won't be a decimal number format used. Please reconsider.

Number formats with decimal point used in digital processing are floating point or fixed point. Possibly constants are specified as decimal numbers in your code.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…