Moore状态机的实例entitydemoisport clk in1 reset instd logic out1 outstd logic enddemo architecturemooreofdemoistypestate typeis s0 s1 s2 s3 状态说明signalstate state type begindemo process process clk reset 时钟进程beginifreset 1 thenstateifin1 1 thenstateifin1 0 thenstateifin1 1 thenstateifin1 0 thenstate s0 endif endcase endif endprocess output p process state 组合进程begincasestateiswhens0 out1out1out1out1 1111 endcase endprocess endmoore