RISC-V-TLM
RISC-V SystemC-TLM simulator
파일 탐색기
최종 버전 다운로드 (.zip)- bug_report.md
- feature_request.md
- docker-image.yml
- Makefile.include
- Makefile.include
- Makefile.include
- Makefile.include
- Makefile.include
- Makefile.include
- Makefile.include
- Makefile.include
- Makefile.include
- Makefile.include
- link.ld
- model_test.h
- DebugConfiguration.png
- Doxyfile
- Hierarchy.png
- passed_tests.md
- A_extension.h
- BASE_ISA.h
- BusCtrl.h
- C_extension.h
- CPU.h
- Debug.h
- extension_base.h
- F_extension.h
- Instruction.h
- M_extension.h
- Memory.h
- MemoryInterface.h
- Performance.h
- Registers.h
- Timer.h
- Trace.h
- A_extension.cpp
- BASE_ISA.cpp
- BusCtrl.cpp
- C_extension.cpp
- CPU.cpp
- Debug.cpp
- extension_base.cpp
- F_extension.cpp
- Instruction.cpp
- M_extension.cpp
- Memory.cpp
- MemoryInterface.cpp
- Performance.cpp
- Registers.cpp
- RV32.cpp
- RV64.cpp
- Simulator.cpp
- Timer.cpp
- Trace.cpp
- BasicLoop.asm
- BasicRegisters.asm
- EternalLoop.asm
- Memoryaccess.asm
- trace.asm
- dhrystone
- dhrystone.c
- helper_functions.c
- Makefile
- forloop.c
- Makefile
- func1.c
- Makefile
- func2.c
- Makefile
- func3.c
- Makefile
- func4.c
- Makefile
- func5.c
- Makefile
- func6.c
- Makefile
- helper_functions.c
- long_test1
- long_test1.c
- Makefile
- helper_functions.c
- long_test2
- long_test2.c
- Makefile
- helper_functions.c
- long_test3
- long_test3.c
- Makefile
- helper_functions.c
- long_test4.c
- Makefile
- helper_functions.c
- Makefile
- malloc_test
- malloc_test.c
- Makefile
- stdlibs.c
- compile.sh
- timer.c
- timerasm.S
- Makefile
- trace.c
- Makefile
- trace2.c
- Makefile
- trace3.c
- link.ld
- cout.cpp
- helper_functions.cpp
- Makefile
- helper_functions.cpp
- Makefile
- rtti
- rtti.cpp
- helper_functions.cpp
- Makefile
- rtti2
- rtti2.cpp
- helper_functions.cpp
- Makefile
- rtti3
- rtti3.cpp
- deprecated_definitions.h
- FreeRTOS.h
- freertos_test.c
- FreeRTOSConfig.h
- heap_4.c
- list.c
- list.h
- Makefile
- mpu_wrappers.h
- port.c
- portable.h
- portasm.S
- portmacro.h
- projdefs.h
- queue.c
- queue.h
- stack_macros.h
- task.h
- tasks.c
- timers.c
- timers.h
- compile.sh
- deprecated_definitions.h
- FreeRTOS.h
- freertos_test.c
- FreeRTOSConfig.h
- heap_4.c
- list.c
- list.h
- log
- Makefile
- mpu_wrappers.h
- port.c
- portable.h
- portasm.S
- portmacro.h
- projdefs.h
- queue.c
- queue.h
- stack_macros.h
- task.h
- tasks.c
- timers.c
- timers.h
- .gitignore
- .gitmodules
- .travis.yml
- CMakeLists.txt
- Dockerfile
- LICENSE
- README.md
- spdlog
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/mariusmm/RISC-V-TLM
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd RISC-V-TLM
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker pull mariusmm/riscv-tlm
이 명령어를 터미널에 그대로 입력해 실행하세요.
docker run -v <path_to_RISCV-V-TLM>/:/tmp -u $UID -e DISPLAY=$DISPLAY --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" -it mariusmm/riscv-tlm /bin/bash
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker run -v <path_to_RISCV-V-TLM>/:/tmp -u $UID -e DISPLAY=$DISPLAY --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" -it mariusmm/riscv-tlm /usr/src/riscv64/RISC-V-TLM/RISCV_TLM /tmp/<your_hex_file>
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker run -v /tmp:/PRJ -it zmors/riscv_gcc:1 bash
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker run -v /tmp:/tmp -u $UID -e DISPLAY=$DISPLAY --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" -it mariusmm/riscv-tlm /bin/bash
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. CMake
보통사전 준비물
cmake -H. -B_builds -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release
이 명령어를 터미널에 그대로 입력해 실행하세요.
cmake --build _builds --config Release
이 명령어를 터미널에 그대로 입력해 실행하세요.
cmake --build _builds --target install
이 명령어를 터미널에 그대로 입력해 실행하세요.
cmake -DCMAKE_BUILD_TYPE=Release ..
이 명령어를 터미널에 그대로 입력해 실행하세요.
cmake ../ -DCMAKE_CXX_STANDARD=17
소스코드를 분석해 빌드 설정 파일을 생성합니다 (build 폴더 안에서 실행해야 함).
build 폴더 안에 실행 파일이 생성됐는지 확인하고, 직접 실행해보세요 (예: ./build/앱이름).
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
