fusesoc / blinky

Example LED blinking project for your FPGA dev board of choice
MIT License
160 stars 71 forks source link

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

Open filmil opened 3 weeks ago

filmil commented 3 weeks ago

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 commented 3 weeks ago

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?