ucb-bar / gemmini

Berkeley's Spatial Array Generator
Other
818 stars 170 forks source link

unexpected character error and Saturn usage #365

Open alsrbok opened 3 months ago

alsrbok commented 3 months ago

First of all, the current build-setup.sh seems to have more errors than the previous version (which I downloaded around February). It doesn't generate .conda-env (only .conda-lock-env) and doesn't download required tools like verilator or firltool. I hope this issue will be resolved soon.

In my case, I solved the problem by changing some code and copying the executable from the old .conda-env.

After that, while I tried to build verilator, it stucks on following error.

src/chipyard.harness.TestHarness.RocketConfig/chipyard.harness.TestHarness.RocketConfig.fir:423964:25: error: unexpected character output mem_axi4 : { 0 : { aw : { flip ready : UInt<1>, valid : UInt<1>, bits : { id : UInt<4>, addr : UInt<32>, len : UInt<8>, size : UInt<3>, burst : UInt<2>, lock : UInt<1>, cache : UInt<4>, prot : UInt<3>, qos : UInt<4>, user : { }, echo : { }}}, w : { flip ready : UInt<1>, valid : UInt<1>, bits : { data : UInt<64>, strb : UInt<8>, last : UInt<1>, user : { }}}, flip b : { flip ready : UInt<1>, valid : UInt<1>, bits : { id : UInt<4>, resp : UInt<2>, user : { }, echo : { }}}, ar : { flip ready : UInt<1>, valid : UInt<1>, bits : { id : UInt<4>, addr : UInt<32>, len : UInt<8>, size : UInt<3>, burst : UInt<2>, lock : UInt<1>, cache : UInt<4>, prot : UInt<3>, qos : UInt<4>, user : { }, echo : { }}}, flip r : { flip ready : UInt<1>, valid : UInt<1>, bits : { id : UInt<4>, data : UInt<64>, resp : UInt<2>, user : { }, echo : { }, last : UInt<1>}}}} @[generators/diplomacy/diplomacy/src/diplomacy/nodes/SinkNode.scala 76:21] ===-------------------------------------------------------------------------=== ... Execution time report ... ===-------------------------------------------------------------------------=== Total Execution Time: 0.2935 seconds

----Wall Time---- ----Name---- 0.2892 ( 98.5%) FIR Parser 0.0856 ( 29.2%) Parse annotations 0.0000 ( 0.0%) Parse OMIR 0.1550 ( 52.8%) Parse modules 0.0044 ( 1.5%) Rest 0.2935 (100.0%) Total

This is because it create some '0' instead of naming

image

Do you know where this problem originated?

Also, I want to build Saturn together with rocket core. Currently document(https://chipyard.readthedocs.io/en/latest/Generators/Saturn.html) guides to use GENV256D128ShuttleConfig but it doesn't seem to be a defined configuration for connecting the rocket core to Saturn.

How can I build such architecture?