cancel
Showing results for
Show  only  | Search instead for
Did you mean:
Visitor
575 Views
Registered: ‎03-20-2020

## Question in Fixed point

What this line really means in_signl : in ufixed( 10 DOWNTO 0 );

Tags (1)
1 Solution

Accepted Solutions
Voyager
535 Views
Registered: ‎06-20-2012

ufixed( a DOWNTO b );

ufixed -> unsigned positive number

sfixed -> signed number 2’s Complement

Scale = 2(**b)

ex:

ufixed(3 downto -3) := "0110100"; -- 6.5

0110100= 52 but the scale is 2(**-3) the number is 52/8 = 6.5

0110.100 = 6+0.5

Whole number is on the left and includes 0 index (3 downto 0)

Fraction is to the right of the 0 index (-1 downto -3)

4 Replies
Voyager
565 Views
Registered: ‎06-20-2012

in_signal : in ufixed( 10 DOWNTO 0 );

input port unsigned 11 bits scale (2**0)

Visitor
547 Views
Registered: ‎03-20-2020

Can you explain more please ?!

Tags (1)
Voyager
536 Views
Registered: ‎06-20-2012

ufixed( a DOWNTO b );

ufixed -> unsigned positive number

sfixed -> signed number 2’s Complement

Scale = 2(**b)

ex:

ufixed(3 downto -3) := "0110100"; -- 6.5

0110100= 52 but the scale is 2(**-3) the number is 52/8 = 6.5

0110.100 = 6+0.5

Whole number is on the left and includes 0 index (3 downto 0)

Fraction is to the right of the 0 index (-1 downto -3)