A
Anton Erasmus
Guest
Hi,
How would one go about implementing a binary semaphore in verilog ?
I have 2 MCUs that have to share a resource. I want to implement a
semaphore in an EPLD which is connected to both MCUs.
On a read bus cycle from any of the MCUs, the current value of the
semaphore should be read, and simultaneously it should be set.
If it was reset, then the resource is available. After the resource
has been used the MCU should use a write bus cycle to reset the
semaphore. The MCUs uses an Intel type bus. i.e. separate RD and WR
signals.
Regards
Anton Erasmus
How would one go about implementing a binary semaphore in verilog ?
I have 2 MCUs that have to share a resource. I want to implement a
semaphore in an EPLD which is connected to both MCUs.
On a read bus cycle from any of the MCUs, the current value of the
semaphore should be read, and simultaneously it should be set.
If it was reset, then the resource is available. After the resource
has been used the MCU should use a write bus cycle to reset the
semaphore. The MCUs uses an Intel type bus. i.e. separate RD and WR
signals.
Regards
Anton Erasmus