Plugin "clint" already registered

91 views
Skip to first unread message

KAVSGAME

unread,
Apr 6, 2024, 11:36:23 AMApr 6
to Chipyard
I am currently following an MLsys tutorial to get gemmini built and run inference on it.
I have successfully built the spike model, binaries for testing according to https://docs.google.com/document/d/1Etar3jgBv4A4qsRrU9UypI0dJMI5hz3KCuGrji2296c/edit?pli=1
I am currently stuck in running these binaries on the spike model i build.
When i run the run-spike sim with a binary that is known to exist in my directory,
I get this error:
terminate called after throwing an instance of 'std::runtime_error'
  what():  Plugin "clint" already registered
./scripts/run-spike.sh: line 77: 14232 Aborted                 (core dumped) spike --extension=gemmini $PK "${full_binary_path}"

I am not able to find much resources to help me get past this. This is the mlsys video and i time stamped my current progress = https://youtu.be/txFpCAaSh_w?si=70zJKhwIuI067eXP&t=1971
Any help on this matter is appreciated. I apologize in advance if this is a stupid entry. Let me know if any more info is needed

KAVSGAME

unread,
Apr 6, 2024, 11:38:29 AMApr 6
to Chipyard
Screenshot from 2024-04-06 21-06-46.png
additional info: the first result is when the binary does not exist, second one is when the binary exists

MC Balasubramaniam

unread,
Apr 27, 2024, 12:08:15 PMApr 27
to Chipyard
Getting the same issue here. Can someone help on this?

ym x

unread,
May 27, 2024, 7:58:22 AMMay 27
to Chipyard
I also got the same trouble. How is it going?  Do you settled it?

Jerry Zhao

unread,
May 28, 2024, 3:06:54 PMMay 28
to chip...@googlegroups.com
Install the latest chipyard, do not modify the gemmini submodule after downloading chipyard. 

-Jerry

--
You received this message because you are subscribed to the Google Groups "Chipyard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/f56cbf40-acf9-43a4-9a20-cad7d3760b77n%40googlegroups.com.

202130...@whu.edu.cn

unread,
May 31, 2024, 2:55:03 AMMay 31
to chip...@googlegroups.com
Thank you very much! I installed  the latest tag chipyard v1.11.0 and gemmini v0.7.2 as your suggestion, and succsessfully built and run spike and verilator.
However, when I tried to build the simulator that can generate waveforms by running
./scripts/build-verilator.sh --debug
An error occurred: 
VTestDriver__Trace__7__Slow.cpp: In function 'void VTestDriver___024root__trace_init_sub__TOP__14(VTestDriver___024root*, VerilatedVcd*)':
VTestDriver__Trace__7__Slow.cpp:2678:131: error: expected unqualified-id before ',' token
 2678 |     tracep->declQuad(c+70308,0,"channel",-1, VerilatedTraceSigDirection::NONE, VerilatedTraceSigKind::VAR, VerilatedTraceSigType::, false,-1, 63,0);
      |                                                                                                                                   ^
make[1]: *** [/mnt/e/Ubuntu2004/chipyard/.conda-env/share/verilator/include/verilated.mk:275:VTestDriver__Trace__7__Slow.o] 错误 1
make[1]: 离开目录“/mnt/e/Ubuntu2004/chipyard/sims/verilator/generated-src/chipyard.harness.TestHarness.CustomGemminiSoCConfig/chipyard.harness.TestHarness.CustomGemminiSoCConfig.debug”
make: *** [Makefile:212:/mnt/e/Ubuntu2004/chipyard/sims/verilator/simulator-chipyard.harness-CustomGemminiSoCConfig-debug] 错误 2
I located to VTestDriver__Trace__7__Slow.cpp:2678, 
    tracep->declQuad(c+70308,0,"channel",-1, VerilatedTraceSigDirection::NONE, VerilatedTraceSigKind::VAR, VerilatedTraceSigType::, false,-1, 63,0);
I think there may be a missing object so I modified it to this like other lines of this file:
    tracep->declQuad(c+70308,0,"channel",-1, VerilatedTraceSigDirection::NONE, VerilatedTraceSigKind::VAR, VerilatedTraceSigType::LOGIC, false,-1, 63,0);
However, when I rerun ./scripts/build-verilator.sh --debug   again, VTestDriver__Trace__7__Slow.cpp was rewrited so that what I modified  lost, leading to reoccurrence of previous error.

I wonder how to solve this problem, thank you very much.  




From: chipyard+bncbdkjfjwgv...@googlegroups.com <chipyard+bncbdkjfjwgv...@googlegroups.com> on behalf of 'Jerry Zhao' via Chipyard <chip...@googlegroups.com>
Sent: Wednesday, May 29, 2024 03:06
To: chip...@googlegroups.com <chip...@googlegroups.com>
Subject: Re: [chipyard] Re: Plugin "clint" already registered
 
You received this message because you are subscribed to a topic in the Google Groups "Chipyard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chipyard/eBlWKBeDTZ8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/CAC%2BpDSG87zci2h6-fKmSSreHEFtX0ZvDV6oE%2B%2BRWHM3BG2peiA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages