electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Philosophical placement of counter in vhdl


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> Philosophical placement of counter in vhdl
Author Message
apalopohapa



Joined: 18 Oct 2009
Posts: 1


Post18 Oct 2009 0:22   

Philosophical placement of counter in vhdl


Hi. In vhdl, if a fsm needed to stay in a specific state for a specific number of clock cycles (for example, 1000), and you wanted to keep track of them using a counter, would you instantiate it within the fsm's architecture or somewhere else (e.g. the datapath) ? I ask because it doesn't feel right to put it along with the datapath stuff because the 'passing data' never interacts with the counter, but putting it along with the fsm code seems weird too. It almost seems that you need datapath, fsm, and a third conceptual placeholder for 'fsm peripherals'. What do you think?
Back to top
Google
AdSense
Google Adsense




Post18 Oct 2009 0:22   

Ads




Back to top
FvM



Joined: 22 Jan 2008
Posts: 5161
Helped: 767
Location: Bochum, Germany


Post18 Oct 2009 8:57   

Philosophical placement of counter in vhdl


For code readability, I prefer to place the counter operation in the FSM code. Don't see, what should be "weird" in this respect.

Generally, any meaningful synchronous counter construct can be expected to be minimized by the VHDL compiler to a similar hardware structure. Thus, it's mostly a matter of taste where to place the counter.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> Philosophical placement of counter in vhdl
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
counter in vhdl (3)
what is Timing driven placement in placement stage?and a (1)
VHDL- counter difficulty (2)
vhdl for counter (5)
VHDL frequency counter (3)
WRITE A COUNTER IN VHDL (6)
regarding counter-vhdl code (6)
vhdl coding for counter (2)
Dual edge counter in VHDL? (10)
counter VHDL PAR problem (4)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS