merledu / nucleusrv

NucleusRV - A 32-bit 5 staged pipelined risc-v core.
GNU General Public License v3.0
57 stars 19 forks source link

Create Docker Container for Verification #72

Open shahzaibk23 opened 8 months ago

shahzaibk23 commented 8 months ago

To Create a Docker Image and Container for Verification.

Image should have:

latifbhatti commented 8 months ago

I have completed docker image. firstly install docker by this command sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

i have install the gcc tool chain and spike, Now pull the docker image from docker hub. latif040/rvv_gcc_tool_chain:1.0 then check docker image by this command docker images and finally run this command sudo docker run --rm -it latif040/rvv_gcc_tool_chain:1.0

now give the assembly file to docker image. firstly save the file in same directory(home/app) touch file name.s open the file in editor vim f1.s then to generate object file riscv32-unknown-elf-gcc -c -march=rv32imv -o f1.o f1.s and finally to get machine code riscv32-unknown-elf-objdump -d test.o | awk '{print $2}' | grep -E '^[0-9a-f]+$'

hadirkhan10 commented 7 months ago

@shahzaibk23 why is this issue still open? Any pending changes left?

shahzaibk23 commented 7 months ago

Yes, The Docker image that @latifbhatti has created contains only RISC-V GCC and Spike ISS.

RISC-V SAIL ISS and RISCOF Framework are still under development by @SyedHassanUlHaq