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

Modelsim with Cocotb [new flow] #676

Open
sebinho opened this issue Mar 13, 2024 · 2 comments
Open

Modelsim with Cocotb [new flow] #676

sebinho opened this issue Mar 13, 2024 · 2 comments

Comments

@sebinho
Copy link

sebinho commented Mar 13, 2024

Hi @olofk,

I have been successfully using fusesoc with Modelsim and cocotb for a while now.
I wanted to update my core files to reflect the latest changes in edalize for cocotb support. But it does not seem to work with Modelsim.
Here is my example core file.

CAPI=2:
name: test:i2c:0
description: test lib for I2C

filesets:
    vhdl_files:
        files:
            - hdl/i2c_slave.vhd
        file_type: vhdlSource-2008

    sim:
        files:
            - sim/i2c_slave_tb.py:              {file_type : user, copyto : .}

targets:

    sim:
        filesets: [vhdl_files, sim]
        toplevel: i2c_slave
        flow: sim
        flow_options:
            tool: modelsim
            cocotb_module: i2c_slave_tb

I get the following error on the command line:

> fusesoc run --target=sim test:i2c:0:0
INFO: Preparing test:i2c:0:0
ERROR: Setup failed : Could not find tool 'modelsim'

Do you know what I am doing wrong?
Thanks for your help

@sebinho
Copy link
Author

sebinho commented Mar 14, 2024

From what I could gather, there isn't yet a modelsim.py description in the edalize/tools folder. I suppose this is due to the migration from tool to flow approach.
I will see if I can make the required changes.

@sebinho sebinho changed the title Modelsim with Cocotb Modelsim with Cocotb [new flow] Mar 14, 2024
@sebinho
Copy link
Author

sebinho commented Mar 14, 2024

I am not very familiar with the internals of edalize, so it might take more time than I anticipated.
@olofk any idea how much work it would be for you to add Modelsim support in the new flow approach?

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