rggen / rggen-sample-testbench

https://github.com/rggen/rggen
MIT License
14 stars 2 forks source link

Error poped when simulating the example test #6

Closed yzykevin closed 1 year ago

yzykevin commented 1 year ago

the error message:

CPU time: .989 seconds to compile make dut.f make[3]: Entering directory /home/kevin/work/rggen/rggen-sample-testbench/sim/apb/verilog' flgen --output=dut.f --define-macro=RGGEN_VERILOG --define-macro=RGGEN_ENABLE_SVA --define-macro=RGGEN_ENABLE_BACKDOOR --define-macro=RGGEN_ENABLE_ENHANCED_RAL /home/kevin/work/rggen/rggen-sample-testbench/rtl/compile.rb no such file or directory -- rggen-verilog-rtl/compile.rb @/home/kevin/work/rggen/rggen-sample-testbench/rtl/compile.rb:7 make[3]: *** [dut.f] Error 1 make[3]: Leaving directory/home/kevin/work/rggen/rggen-sample-testbench/sim/apb/verilog' make[2]: [compile_vcs] Error 2 make[2]: Leaving directory `/home/kevin/work/rggen/rggen-sample-testbench/sim/apb/verilog' make[1]: [sim_vcs] Error 2 make[1]: Leaving directory `/home/kevin/work/rggen/rggen-sample-testbench/sim/apb/verilog' make: *** [ral_hw_reset_test] Error 2

Hi, I appreciated what you did! I am trying the sample tb but I cannot find the files poped in terminal. I saw the folders and files located in the root folder of the sample tb repo. I don't know why it poped error.

case ENV['LANGUAGE'] when 'systemverilog' file_list 'rggen-sv-rtl/compile.rb', from: :current source_file "#{ENV['PROTOCOL']}/block_0.sv" source_file "#{ENV['PROTOCOL']}/block_1.sv" when 'verilog' file_list 'rggen-verilog-rtl/compile.rb', from: :current source_file "#{ENV['PROTOCOL']}/block_0.v" source_file "#{ENV['PROTOCOL']}/block_1.v" when 'vhdl' file_list 'rggen-vhdl-rtl/compile.rb', from: :current source_file "#{ENV['PROTOCOL']}/block_0.vhd" source_file "#{ENV['PROTOCOL']}/block_1.vhd" end

this is the file who will find the needed things.

I am not familiar with ruby, please help!

yzykevin commented 1 year ago

Sorry, I got it. I need to clone all the repos as setup_xx.sh do.

jamesningd commented 1 year ago

Hi yzykevin, I have totally the same problem as you. After reading your comment, I still don't know how to solve it, would you please tell me?

taichi-ishitani commented 1 year ago

@jamesningd ,

Can you show your error log?

yzykevin commented 1 year ago

I think the author already supplied the setup_xx.sh script. So if you try, it will help. Maybe like "source" function.

jamesningd commented 1 year ago

Hi, When use setup_submodules.sh, we fail to update it the result is like this:

./setup_submodules.sh Submodule 'env/tue' (git@github.com:taichi-ishitani/tue.git) registered for path 'env/tue' Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/env/tue'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:taichi-ishitani/tue.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/env/tue' failed Failed to clone 'env/tue'. Retry scheduled Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/env/tue'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:taichi-ishitani/tue.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/env/tue' failed Failed to clone 'env/tue' a second time, aborting Submodule 'env/tvip-common' (git@github.com:taichi-ishitani/tvip-common.git) registered for path 'env/tvip-common' Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-common'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:taichi-ishitani/tvip-common.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-common' failed Failed to clone 'env/tvip-common'. Retry scheduled Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-common'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:taichi-ishitani/tvip-common.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-common' failed Failed to clone 'env/tvip-common' a second time, aborting Submodule 'env/tvip-apb' (git@github.com:taichi-ishitani/tvip-apb.git) registered for path 'env/tvip-apb' Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-apb'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:taichi-ishitani/tvip-apb.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-apb' failed Failed to clone 'env/tvip-apb'. Retry scheduled Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-apb'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:taichi-ishitani/tvip-apb.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-apb' failed Failed to clone 'env/tvip-apb' a second time, aborting Submodule 'env/tvip-axi' (git@github.com:taichi-ishitani/tvip-axi.git) registered for path 'env/tvip-axi' Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-axi'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:taichi-ishitani/tvip-axi.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-axi' failed Failed to clone 'env/tvip-axi'. Retry scheduled Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-axi'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:taichi-ishitani/tvip-axi.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/env/tvip-axi' failed Failed to clone 'env/tvip-axi' a second time, aborting Submodule 'ral/rggen-sv-ral' (git@github.com:rggen/rggen-sv-ral.git) registered for path 'ral/rggen-sv-ral' Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/ral/rggen-sv-ral'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:rggen/rggen-sv-ral.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/ral/rggen-sv-ral' failed Failed to clone 'ral/rggen-sv-ral'. Retry scheduled Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/ral/rggen-sv-ral'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:rggen/rggen-sv-ral.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/ral/rggen-sv-ral' failed Failed to clone 'ral/rggen-sv-ral' a second time, aborting Submodule 'rtl/rggen-sv-rtl' (git@github.com:rggen/rggen-sv-rtl.git) registered for path 'rtl/rggen-sv-rtl' Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-sv-rtl'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:rggen/rggen-sv-rtl.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-sv-rtl' failed Failed to clone 'rtl/rggen-sv-rtl'. Retry scheduled Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-sv-rtl'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:rggen/rggen-sv-rtl.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-sv-rtl' failed Failed to clone 'rtl/rggen-sv-rtl' a second time, aborting Submodule 'rtl/rggen-verilog-rtl' (git@github.com:rggen/rggen-verilog-rtl.git) registered for path 'rtl/rggen-verilog-rtl' Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-verilog-rtl'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:rggen/rggen-verilog-rtl.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-verilog-rtl' failed Failed to clone 'rtl/rggen-verilog-rtl'. Retry scheduled Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-verilog-rtl'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:rggen/rggen-verilog-rtl.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-verilog-rtl' failed Failed to clone 'rtl/rggen-verilog-rtl' a second time, aborting Submodule 'rtl/rggen-vhdl-rtl' (git@github.com:rggen/rggen-vhdl-rtl.git) registered for path 'rtl/rggen-vhdl-rtl' Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-vhdl-rtl'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:rggen/rggen-vhdl-rtl.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-vhdl-rtl' failed Failed to clone 'rtl/rggen-vhdl-rtl'. Retry scheduled Cloning into '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-vhdl-rtl'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:rggen/rggen-vhdl-rtl.git' into submodule path '/home/jamesning/work/reggen/rggen-sample-testbench/rtl/rggen-vhdl-rtl' failed Failed to clone 'rtl/rggen-vhdl-rtl' a second time, aborting

jamesningd commented 1 year ago

Hi ALL, I solved this problem. The ssh key of my git is wrong. I renewed it and can use setup_submodules.sh now. Thank you