• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Difference : Semaphores and Mailboxes

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 64
  • Views 31222
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Difference : Semaphores and Mailboxes

hipooja
hipooja over 15 years ago

Hi,

The diffference i understand between usage of semaphore and mailbox is as follows

--Semaphores canot be used for data transfer between two concurrent processes ,however it helps in synchronizing them.As an example if two parallel processes lets say two different drivers are driving a same set of signals ,then to avoid contention it becomes necessary to use semaphores.

Mailboxes can be used to transfer data between two concurrent processes ,lets say our DUT supports 2 different bus protocols for accessing register space.We would have a scenario wherein we write a register from one bus driver and read it from the other bus

monitor,in that case we need to pass address and the expected data from the register or atleast the address incase we have a shadow register implemented in the Testbench

Is this a correct understanding.Please provide with examples as i am sure such features are frequently used in VE dev

Are channels fundamentally mailboxes?

 

Regards,

Pooja Vaishnav

  • Cancel
Parents
  • tpylant
    tpylant over 15 years ago
    Your summary is correct. As for a channel, it can be defined as a mailbox or a buffer or a fifo or a lifo or a number of other things.

    Tim
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • tpylant
    tpylant over 15 years ago
    Your summary is correct. As for a channel, it can be defined as a mailbox or a buffer or a fifo or a lifo or a number of other things.

    Tim
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information