KingMoshe
Member level 2
Hi All,
What will happen if I will do the following operation?
reg [15:0] NUM1;
reg [15:0] NUM2;
NUM1 <= NUM2*16'd1064/16'd100;
The result of "NUM2*16'd1064/16'd100" not always integer.
Please see that if NUM1 = 100 , so NUM1 * 1064 = 106400 and 16 bit register is too small, do the actions (*1064/100) occur together or in two stages?
Thanks,
Moshe.
What will happen if I will do the following operation?
reg [15:0] NUM1;
reg [15:0] NUM2;
NUM1 <= NUM2*16'd1064/16'd100;
The result of "NUM2*16'd1064/16'd100" not always integer.
Please see that if NUM1 = 100 , so NUM1 * 1064 = 106400 and 16 bit register is too small, do the actions (*1064/100) occur together or in two stages?
Thanks,
Moshe.