I am a bit confused in the round robin scheduling part. Which model should I use here for this kind of arbiter.A Moore machine's outputs are only a function of state, while a Mealy machine's output is not only a function of state, but also a function of the current inputs.
If your logic is such that knowing the state is all that is needed to know what the outputs should be, then use a Moore machine. If, however, the output should also depend on what the current inputs are, then use a Mealy machine.
Don't make it harder than it is.
I am trying to design an arbiter which follows the round robin algorithm or scheduling. In the model it has three request inputs and 3 grant outputs.Since I have no idea what the logic specification is that you are trying to design to, there is no way for me to even think of offering an opinion. You talk as though "round robin scheduling part" is some universal thing that everyone is expected to know exactly what it is you are trying to do.
From your first question, i had one more doubt. So in the moore or mealy model, what does state mean exactly. Is it same as the output of the combinational block? So i am not sure about the answer to the first question.So what does each state of your machine represent?
What does each input represent?
What does each output represent?
When can your machine change state?
Does it make sense for your outputs to change in between state changes?
Yeah i have understood this, i tried drawing the state diagram too. So should I proceed with mealy machine?The way to organize this problem is probably not unique. If we want to try to see if a machine with four states would work, we could try the following encoding.
0 - Idle - no task is ready to run
1 - Task 1 is running
2 - Task 2 is running
3 - Task 4 is running
Does this help?
I was suggesting a Moore machine might be possible since the GRANT outputs correspond to transitions from one of the four states to another one of the four states. So, the GRANT signals can be synthesized from the two state bits. The reason you might need a Mealy machine is if any state has two or more transitions into it with different input conditions and different output values. That means, how you get to a state allows for two or more output values.Yeah i have understood this, i tried drawing the state diagram too. So should I proceed with mealy machine?
Thank you !!I was suggesting a Moore machine might be possible since the GRANT outputs correspond to transitions from one of the four states to another one of the four states. So, the GRANT signals can be synthesized from the two state bits. The reason you might need a Mealy machine is if any state has two or more transitions into it with different input conditions and different output values. That means, how you get to a state allows for two or more output values.
Can you please elaborate when to use which machine. And what is the difference between a state and output of the model. Are they different?I was suggesting a Moore machine might be possible since the GRANT outputs correspond to transitions from one of the four states to another one of the four states. So, the GRANT signals can be synthesized from the two state bits. The reason you might need a Mealy machine is if any state has two or more transitions into it with different input conditions and different output values. That means, how you get to a state allows for two or more output values.
The "state" is the value of all of the registers in the system. It is NOT the combinatorial logic output.From your first question, i had one more doubt. So in the moore or mealy model, what does state mean exactly. Is it same as the output of the combinational block? So i am not sure about the answer to the first question.
Each input represents the requests. So if only process one is requesting the input will be 100 and if all three are requesting the input will be 111.
Each output represents the grant signal. If process one has to be given the grant, output should be 100. Only one process can be given grant at a time. So only three possible outputs 100, 101 and 001.
The machine changes state in every clock cycle. This is because the process are given a fixed interaval of time. Suppose all three process are requesting. So as per the priority first process will be given the grant. In the second clock cycle the second process will be given the grant irrespective of the fact that first one is completed or not.
If the first process is not completed it has to wait in the queue. That is after third.process it will be given the grant.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
Z | Output of Mealy Machine for 2's Complement | Homework Help | 0 | |
S | Mealy homework | Homework Help | 1 | |
E | Differentiating Moore between Mealy | Homework Help | 6 | |
O | Mealy state machine | Homework Help | 15 | |
F | modeling a sequential circuit for vending machine using moore and mealy fsm | General Electronics Chat | 0 |
by Duane Benson
by Duane Benson