Skip to content

Conversation

RiceShelley
Copy link
Contributor

Issue:
When randomly generating clock periods old implementation would on occasion select a clock period that could not be represented by the resolution of the simulator causing the test to fail.

Fix:
Use Decimal class and strings to generate a random number with only N decimal places.

@RiceShelley RiceShelley force-pushed the rice/cocotb_random_clk_period_generation branch from 40b3229 to 9bf46e1 Compare July 21, 2025 20:10
@RiceShelley RiceShelley force-pushed the rice/cocotb_random_clk_period_generation branch from 9bf46e1 to 2aa04e0 Compare July 21, 2025 20:12
@RiceShelley RiceShelley requested review from gadfort and aolofsson July 21, 2025 20:35
@gadfort gadfort marked this pull request as draft August 26, 2025 19:04
@gadfort
Copy link
Member

gadfort commented Aug 26, 2025

@RiceShelley marked draft until it can be reworked to match reorged lambdalib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants