Skip to content

Comments

Add support for cocotb 2.0#121

Draft
RasmusGOlsen wants to merge 3 commits intoalexforencich:masterfrom
RasmusGOlsen:cocotb2
Draft

Add support for cocotb 2.0#121
RasmusGOlsen wants to merge 3 commits intoalexforencich:masterfrom
RasmusGOlsen:cocotb2

Conversation

@RasmusGOlsen
Copy link

@RasmusGOlsen RasmusGOlsen commented Nov 5, 2025

This adds support for cocotb 2.0. This update still need to wait for a new release of the cocotb-bus package.

The following issues are still open

  • Wait for new release of cocotb-bus
  • Solve deprecation warning in unit tests when using TestFactory

Resolves: #113 #119

@davekeeshan
Copy link

I am getting tired of waiting for cocotb-bus to be updated. I have pinged them on updating it a few times, and the pending change was something I actually did (nearly 2 years ago)

I have projects that use it and I got sick of waiting, I just copied the file, (it's only one file) into my project, changed the paths to use it, and left a issue in my repo to revisit later.

@alexforencich
Copy link
Owner

I'm going to try to maintain support for both 2.0 and pre-2.0 for a while. This PR definitely breaks everything pre-2.0.

As far as cocotb-bus is concerned...I want to replace it with something more flexible, but haven't had the time to really dig in to it. The idea would be to be able to handle oddball configurations easier - nonstandard names, segregated directions, etc. Fortunately it will be easy to swap out the bus object in a backwards-compatible way, as I already wrap the bus object.

@RasmusGOlsen
Copy link
Author

I'm going to try to maintain support for both 2.0 and pre-2.0 for a while. This PR definitely breaks everything pre-2.0.

I can adjust it to be backward compatible if you wish.

@s3rg1o7
Copy link

s3rg1o7 commented Nov 12, 2025

this pr probably closes also #113

@ericsmacedo
Copy link

ericsmacedo commented Nov 26, 2025

cocotb-bus==0.3.0 was released (in Pypi only) and solves at least issue #119.

I added a comment in #119

@s3rg1o7
Copy link

s3rg1o7 commented Jan 12, 2026

any news on the approval for these changes? In the company I work for we are also blocked by the axi module to update to cocotb2

@tomhepworth
Copy link

Any reason this is not approved?

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.

cocotb dependency

6 participants