Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Thanks for reply. By author opinion, two-segments style is better way for optimization of combinational logic by analysis&syntesis module, because it is separated from registers. And It`s seems to be true. If it is, by such reorganization of code, we can get some additional le for other blocks. My attempts has no positive results, but may be anybody has them. Counters in two-segment and one-segment code are the same, I use it for waiting for the end of external process in my project. So I added it to my example. --- Quote End --- What really matters is your design. after all it is all registers and logic that you ask for whichever way. The state machine is just an old design concept or methodology that translates to registers and logic. For example a two states machine(s1,s2) may end up as two registers(s1,s2). You might equally just use explicit registers: if s1,s2 = 00 then s1,s2 <= 01 ..etc (in fact a counter is same). any other logic can be tied up to these registers e.g. if s1,s2 = 11 then... so in short, it is just a way to clear the mind about the design and I don't see any evidence of better or worse resource.