Forum Discussion
Altera_Forum
Honored Contributor
11 years agoFmax Improvment
I'm trying to improve Fmax in our design. See the archived quartus II proejct file in the attachment. The source files are also attached. In my currrent design, after compilation, Fmax can reach ...
Altera_Forum
Honored Contributor
11 years agoWhat this code shows is how verbose it can become when you start using innapropriate types.
Why is setting_pixel not an unsigned already? instead of shift_right function, why not do /2^n? so a 1 bit shift is /2, 2 = /2 etc. so instead of the massive long lines you already have, you could just use:
elsif Setting_Pixel < ( Setting_TotPixel/2 + Setting_TotPixel/8 ) then