Altera_Forum
Honored Contributor
14 years agodivision 2 integer value and output to the output reg
Hi,
Is it can not direct using the division '/' in verilog?.. I notice that the result of division between two integers number and stored in the out reg gives red color words shown in Signal Tap II. initialisation----- integer NumPixel, Sum_Xposition, Sum_Yposition; output reg [10:0] CM1X, CM1Y; function----- CM1X = Sum_Xposition/NumPixel; CM1Y = Sum_Yposition/NumPixel; The CM1Y and CM1X shown in red while i try to simulate using Signal tap. Pls help as my project is going to due. Thanks you