Forum Discussion
Altera_Forum
Honored Contributor
13 years agoVerilog has very specific rules about how data types (bit widths, signedness, and realness) are propagated through an expression.
Verilog uses integer arithmetic by default when all operands are integers. You can covert to real arithmetic by using real constants writing: y - 100.0*p^(1000.0/5200.0);