Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling cocotb_bus BitDriver.start() causes an exception error #76

Open
chooob-bot opened this issue May 3, 2024 · 0 comments
Open

Comments

@chooob-bot
Copy link

cocotb version 1.8.1
Linux 64 bits
Questa 10.7c
Python 3.6

@cocotb_test
async def my_test(dut)
driver=BitDriver(dut.clk, dut.data_in)
cocotb.fork(Clock(dut.clk, CLK_PERIOD, units='ns').start())
driver.value = 1 driver.start()
await ClockCycles(dut.clk,100)

Error - BitDriver._cr_twiddler Exception raised by this forked cocoroutine
traceback:
scheduler.py, line 384 in _react self._event_loop(trigger)
scheduler.py, line 487 in _event_loop self._schedule(coro, trigger = trigger)
scheduler.py, line 956 in _schedule Assert result is none
Assertion error

Note that even if the only code in the test is just
driver = BitDriver(dut.clk, dut.data_in)
driver.start()

It still fails on that exception

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

No branches or pull requests

1 participant