chipsalliance / rocket-chip

Rocket Chip Generator
Other
3.2k stars 1.12k forks source link

why do I get an error when executing “make verilog” #2151

Closed AnouarNechi closed 4 years ago

AnouarNechi commented 4 years ago

I was trying to begin with Rocket-chip and I was following the steps on the GitHub repository. Everything went fine until I tried to build the VCS simulator:

$ cd vsim
$ make

But I read in the issues that this tools is not free (have to pay for it ?!). So, I assumed that it is optional. and then I tried o generate FPGA- or VLSI-synthesizable Verilog:

$ cd vsim
$ make verilog

And I got the following error:

find: ‘/home/user/rocket-chip/api-config-sifive/design/craft/src/main/scala’: No such file or directory
make: Nothing to be done for 'verilog'.

I tried to look for the directory and it seemed that this is some kind of bug because that path does not exist in the repository. The closest thing to it is the following path /home/user/rocket-chip/src/main/scala where I have the following directories:

amba     
diplomacy              
groundtest  
jtag           
regmapper  
scie       
system  
tilelink  
util
devices  
diplomaticobjectmodel  
interrupts  
package.scala  
rocket     
subsystem  
tile    
unittest

Is this the right path ? if yes how can I correct this (which makefile should modify)

hyf6661669 commented 4 years ago

VCS is not a free simulator, you have to pay for it. You can use verilator (cd emulator) for simulation, which is opensource and very fast.

mwachs5 commented 4 years ago

api=config-sifive is a submodule. You need to initialize your submodules to get that directory. Please see the README: https://github.com/chipsalliance/rocket-chip#checkout-the-code

And make sure you do the last stepgit submodule --init

angi10 commented 4 years ago

@mwachs5 the submodule api-config-sifive doesn't exist in https://github.com/ucb-bar/rocket-chip.git

mwachs5 commented 4 years ago

Ah. I guess there is api-config-chipsalliance

Maybe try fixing this line: https://github.com/chipsalliance/rocket-chip/blob/65cf4921985093156196b47990a2d616bb40533a/Makefrag#L40

angi10 commented 4 years ago

I modified that line from api-config-sifive/design/craft in api-config-chipsalliance/design/craft But the problem is: find: "/home/andrea13/rocket-chip/api-config-chipsalliance/design/craft/src/main/scala": File or directory doesn't exist I have home/andrea13/rocket-chip/api-config-chipsalliance/design/craft/src/config/Config.scala

dsw commented 4 years ago

Did this item get resolved? I am having the same problem when running rocket-chip/emulator$ make run-asm-tests-debug

OmarAlsherbini commented 4 years ago

The Makefrag file was updated yesterday to fix the api-config-sifive >> chipsalliance issue. Please refer back to the rocket-chip respiratory.