Forum Discussion
Altera_Forum
Honored Contributor
18 years agoOk, I understand what you are saying. I looked at my xxx.map.rpt & it says the State I want it to initialize to out of power-up is encoded to all 0's:
Info: State "|CPLD_A_test2|foo:SM1|CURRENT_STATE.wait_state" uses code string "0000000000" But That isnt a "reset state", I dont have one. If I were to make a reset state, how would it know when to transition to my initial "wait_state"?& why do you need one? my state machine code looks like this: process(clk) begin if clk = '1' and clk'event then if sreset = '0' then --This is my external reset CURRENT_STATE <= wait_state; .. .. end if; else case CURRENT_STATE is when wait => do your stuff It sounds you are saying "most designs" use an external power on reset to drive DEV_Clrn, but I am trying to get around that. appreciate your patience! thanks, ambien