-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-add support for event data field that has been removed in cocotb 2.0
The .data field of cocotb.triggers.Event has been removed in cocotb 2.0. This is a part of the API exposed by cocotb-bus because Monitor receives event from external source. It is probably best to keep the current API until support for cocotb 1.x has been removed from cocotb-bus. Accordingly, the simpliest solution for this problem is to detect cocotb 2.0 version and re-add the .data field when event.set is being called on cocotb 2.0.
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters