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

Examples do not build / sim / work (?) #105

Open
filmil opened this issue Jun 27, 2024 · 2 comments
Open

Examples do not build / sim / work (?) #105

filmil opened this issue Jun 27, 2024 · 2 comments

Comments

@filmil
Copy link

filmil commented Jun 27, 2024

I'm expecting this to be a case of PEBKAC, but still.

I tried following the instructions at https://github.com/fusesoc/blinky?tab=readme-ov-file#how-to-use

Here are the results. What am I doing wrong? I also tried to download the blinky source from here, and run in that dir. No impact.

(pyenv) ┬─[f@filmar:~/tmp]─[04:39:45 AM]
╰─>$ fusesoc core list

Available cores:

ERROR: No libraries registered
(pyenv) ┬─[f@filmar:~/tmp]─[04:39:49 AM]
╰─>$ fusesoc library update
(pyenv) ┬─[f@filmar:~/tmp]─[04:39:57 AM]
╰─>$ fusesoc core list

Available cores:

ERROR: No libraries registered
(pyenv) ┬─[f@filmar:~/tmp]─[04:40:02 AM]
╰─>$ fusesoc core show fusesoc:utils:blinky
ERROR: 'fusesoc:utils:blinky' or any of its dependencies requires 'blinky', but this core was not found
(pyenv) ┬─[f@filmar:~/tmp]─[04:40:15 AM]
╰─>$ fusesoc run --target=sim fusesoc:utils:blinky
ERROR: 'fusesoc:utils:blinky' or any of its dependencies requires 'blinky', but this core was not found
(pyenv) ┬─[f@filmar:~/tmp]─[04:40:24 AM]
╰─>$ fusesoc run --target=sim fusesoc:utils:blinky --help
ERROR: 'fusesoc:utils:blinky' or any of its dependencies requires 'blinky', but this core was not found
(pyenv) ┬─[f@filmar:~/tmp]─[04:40:32 AM]
╰─>$ fusesoc run --target=sim fusesoc:utils:blinky --pulses=4 --clk_freq_hz=4000000 --vcd
ERROR: 'fusesoc:utils:blinky' or any of its dependencies requires 'blinky', but this core was not found
(pyenv) ┬─[f@filmar:~/tmp]─[04:40:40 AM]
╰─>$ 
@filmil
Copy link
Author

filmil commented Jun 27, 2024

This helped a bit:

(pyenv) ┬─[f@filmar:~/tmp]─[04:40:40 AM]                                                                                                     
╰─>$ fusesoc library add blinky https://github.com/fusesoc/blinky
...
(pyenv) ┬─[f@filmar:~/tmp]─[04:43:47 AM]                              
╰─>$ fusesoc --config fusesoc.conf library list    
Name   : Location                 : Sync type : Sync URI                          : Sync version : Auto sync                                 
blinky : fusesoc_libraries/blinky : git       : https://github.com/fusesoc/blinky : (none)       : y                                         

However:

╰─>$ fusesoc --config fusesoc.conf run --target=sim fusesoc:utils:blinky
ERROR: Conflicting requirements:
Requirements: 'fusesoc_utils_blinky == 1.1.1-0' <- 'vlog_tb_utils >= 0-0'
    +fusesoc_utils_blinky-1.1.1-0 was ignored because it depends on missing packages
Requirements: 'fusesoc_utils_blinky == 1.1.1-0'
    Install command rule (+fusesoc_utils_blinky-1.1.1-0)

Failed to resolve dependencies for fusesoc:utils:blinky:1.1.1

What to do?

@olofk
Copy link
Contributor

olofk commented Jul 30, 2024

Aha! I see now that the README instructions aren't complete. I have updated them now. The simulation target depends on the vlog_tb_utils core. That one is found in another library, which needs to be added to the workspace. Running fusesoc library add fusesoc-cores https://github.com/fusesoc/fusesoc-cores should do the trick.

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

2 participants