Rules | Recent posts | topic RSS | Search | Register  | Log in

fixed-point verilog

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Author Message
siva_7517



Joined: 16 Jan 2006
Posts: 136


Post14 Aug 2006 10:30   fixed-point verilog

verilog code :

assign A = B*C
assign D = A + E

the example of calculation is shown below:

given ,

-0.25 = B =>1.110
0.75 = C => 0.110
0.5 = E => 0.100


-----------------1.110 ____________ -0.25 B
---------------x 0.110 ____________ 0.75 C
-----------------------
---------------- 0000
------------111110------------------->extended sign bit
------------11110--------------------->extended sign bit
----------+0000
-----------------------------
----------11.110100 _______________-0.1875 A




After multiply this value, the results of A fixed-point has changed. How can i add A value to E value in verilog because both has different fixed-point value.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap