hi,
I want to design controller with few counters (for addresses ,size ,etc').
is it better to design:
1. each counter as an independent module connected to FSM.
2. write the counters (or part of them ) inside my FSM?
thanks.
Hi,
it is best (according to my view) to separate control(FSM) and
datapath (counters, adders, comparators etc.). So, i think that
it would be better if you just used control signals in your FSM to
control the counter's operation as startCouter, stopCounter etc and
not increment and decrement the counter inside the FSM.
This variant is better for simple tasks (such as controlling of counters, etc) because it describes behavior of component in a whole. Besides its more readable. If you have complicated module which must be controlled by your FSM then first variant is preferred.