Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

One segment vs two segment State Machine style

Hello to everybody,

I am trying to decrease usage of elements in my project for Cyclone IV in Quartus II 13.0. I found the way of improvement synchronous sequential circuits in the book (rtl hardware design using vhdl by pong p. chu) (https://www.dropbox.com/s/x5on6xoytyrl8e0/rtl%20hardware%20design%20using%20vhdl.pdf) on pages 213-250. Author proposed to create two segment logic, where next-state and output logic are a combinational circuit and memory elements is only for saving current state. It helps to divide combinational logic from memory and it is better to perform optimization and to fine-tune circuit by author`s opinion.

When I used examples from this book and rewrote them by two-segments style, I haven`t recognized any differents in logic usage. And when I tried to adopt my project to this style, I found that logic usage is more than 2 times than one segment style.

I tried to test the concept in a simple circuit design, but one-segmented coded style seems to be better in that case too. Example files of two styles are in attachments.

Has anybody there been successful with two-segment logic in projects?

Thanks for advices.

16 Replies