Forum Discussion
Altera_Forum
Honored Contributor
17 years agoOk, now I understand what you want to do. Try this:
module math_real_test (y); output [31:0] y; function [31:0] f_real; input [31:0] x ; f_real = 5.74857 * (x + 0.7071) ; endfunction assign y = 4096 * f_real(1); endmodule