[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1889706 [View]
File: 1.82 MB, 1920x1080, 1585371882865.png [View same] [iqdb] [saucenao] [google]
1889706

>>1889685
After further fighting, found solution, so I reply to myself.
These do all work:
parameter TICKS = $unsigned((12000000/FREQ)/2);
parameter TICKS = $rtoi(0.5*(12000000/FREQ))
parameter TICKS = (12000000/FREQ)/2;
Therefore, ultimately to do with the warning:
Warning: converting real value 4.486500e+03 to binary 4487.
Getting rid of the real value, or making the conversion real->integer explicit, got rid of signedness in parameter.

Navigation
View posts[+24][+48][+96]