how many processes i need to monitor two signals?

前端 未结 2 2010
难免孤独
难免孤独 2021-01-23 20:26

I am a vhdl begginner, and in need of help for my problem. I have 2 signals that i need to monitor. One is CHECK and the other OK. Every time i ask for a CHECK, I should get

2条回答
  •  攒了一身酷
    2021-01-23 20:53

    This is a pretty standard state machine, and most designers will use from one to three processes for a state machine. If you are just starting out then using three processes may make things easier for you. The processes would be:

    1. Using the current state of the counter and the input signals, decide what the next state should be.
    2. Using the current state of the counter and the input signals, decide what the values of all output signals should be.
    3. At the desired clock edge, load the next state of the counter (from 1.) into the counter.

    Note that the first two processes are purely combinational logic while the third is a clocked, sequential process.

提交回复
热议问题