Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20703 Discussions

Addition fixed point

Altera_Forum
Honored Contributor II
916 Views

sir, I want to perform addtion arithmetic with fixed point in verilog. what should i do ? for example, 3.12 + 1.75  

Thanks.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
217 Views

c <= a+b; 

 

As long as "a" and "b" are in the same fixed point format.
0 Kudos
Altera_Forum
Honored Contributor II
217 Views

 

--- Quote Start ---  

c <= a+b; 

 

As long as "a" and "b" are in the same fixed point format. 

--- Quote End ---  

 

 

Can I see your example code with addition arithmetic in VERILOG
0 Kudos
Reply