A
Anon Anon
Guest
As a newbie I would like to know what the code would look like for an
entity that behaves in the following manner:
1) It has an integer/enumeration input that is used by clients
to tell it the type of operation to perform.
2) The clients set an 'Start' bit to indicate that the entity
should perform the operation.
3) The clients then wait on a 'Ready' bit which is set by the
entity when it has completed the operation.
My main concern is how to code this in such a manner that the entity
doesn't repeat the operation ad nauseum, due to the fact that there
doesn't seem to be any clean way for the 'Start' bit to be cleared (and
hence stop the entity from repeating the operating as soon as it
completes one cycle).
I suspect that the solution relies somehow on only triggering the
operation on the transition on the Execute bit, but I'm not sure what
the code would look like.
Thanks for any info.
entity that behaves in the following manner:
1) It has an integer/enumeration input that is used by clients
to tell it the type of operation to perform.
2) The clients set an 'Start' bit to indicate that the entity
should perform the operation.
3) The clients then wait on a 'Ready' bit which is set by the
entity when it has completed the operation.
My main concern is how to code this in such a manner that the entity
doesn't repeat the operation ad nauseum, due to the fact that there
doesn't seem to be any clean way for the 'Start' bit to be cleared (and
hence stop the entity from repeating the operating as soon as it
completes one cycle).
I suspect that the solution relies somehow on only triggering the
operation on the transition on the Execute bit, but I'm not sure what
the code would look like.
Thanks for any info.