Created
May 2, 2021 22:49
-
-
Save gustavonmartins/1f70071c4e02c7989bab4aff730f0743 to your computer and use it in GitHub Desktop.
Verilgog :generate fie for readmemh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clang --target=riscv32 -march=rv32i test_instructions.s -c -o arquivo.o | |
llvm-objcopy -O ihex here.o here.hex | |
objcopy -O binary arquivo.o --only-section .text\* arquivo.bin | |
hexdump -ve '1/4 "%08x\n"' arquivo.bin > arquivo.mem | |
clang --target=riscv32 -march=rv32i test_instructions.s -c -o arquivo.o && llvm-objcopy -O binary arquivo.o --only-section .text\* arquivo.bin && hexdump -ve '1/4 "%08x\n"' arquivo.bin > arquivo.mem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment