I am new to Verilog, but have some coding experience in VHDL. While reading someone else's code, I came across the following part:
genvar i; generate for (i = 0; i < 8; i = i + 1) begin : gen_for integer p = (66.0*i)/8.0; assign data[p + 1] = ...
My doubt here is what will be the value of
p rounded to?
Will it be rounded to the nearest integer or to the largest integer
< (66.0*i)/8.0 (floor operation)?