lowRISC / opentitan

OpenTitan: Open source silicon root of trust
https://www.opentitan.org
Apache License 2.0
2.52k stars 749 forks source link

[topgen.py]FileNotFoundError: ‘hw/top_earlgrey/data/ip/ast/data/ast.hjson’ #24595

Open lin-snail opened 1 week ago

lin-snail commented 1 week ago

Description

rswarbrick commented 6 days ago

I just ran locally with make -C hw top and everything worked (which is probably a workaround for you). I can also see the error you report if I run the command you show above.

Looking at the difference in what runs in the two cases, I notice that the working version runs

util/topgen.py -t hw/top_earlgrey/data/top_earlgrey.hjson -o hw/top_earlgrey/

(notice the different path to the hjson file). The path you're giving as an input is actually an output from topgen.

But the error that comes out is a bit rubbish! Let's keep this issue open until we've sorted that out.

lin-snail commented 6 days ago

Thanks for your help. It is ok with the following command line:

rswarbrick commented 6 days ago

I'm keeping this open to track the fact that we could improve the tooling messages to explain what's going on more clearly. That change is hopefully available in the linked PR.