Altera_Forum
Honored Contributor
14 years agoVerilog - minimizing logic
Hi
I'm generating some asymmetric waveforms from a counter, and am able to adjust the counts where it changes output. Hence I'd like to choose numbers that utilize the minimum amount of logic - e.g: Counter8_out = ((Counter1 >= 48) && (Counter1 < 80)) | ((Counter1 >= 128) && (Counter1 < 176)) | ((Counter1 >= 208) && (Counter1 < 256)) | (Counter1 >= 304); Is there any way I can see what effect tweaking the numbers has on the compiled logic, e.g. seeing how much logic is used by that signal, or seeing the canonical equation produced by the synthesis (IIRC there was a way of seeing that from MAX-PLUS-II)? [edit] - other than by compile, print-screen "resource usage summary", tweak, compile, compare "resource usage summary" against previous... [edit] - also seeing that adjusting the counts to use a spread of 2,3,4 input Logic Element usage can work better than trying to always use minimum number of bits.