OpenCores
URL https://opencores.org/ocsvn/steelcore/steelcore/trunk

Subversion Repositories steelcore

[/] [riscv-tests/] [memgen.sh] - Blame information for rev 11

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 11 rafaelcalc
shopt -s extglob
2
getfiles="ls rv32ui!(*.dump|*.hex)"
3
filenames=`$getfiles`
4
for eachfile in $filenames
5
do
6
        riscv32-unknown-elf-ld $eachfile -Ttext 0x00000000 -Tdata 0x00002000 -o $eachfile.v2
7
        riscv32-unknown-elf-elf2hex --bit-width 32 --input $eachfile.v2 > $eachfile.mem
8
        #riscv32-unknown-elf-objdump -d $eachfile.v2 | tail -n +8 | head -n -1 | cut -c 7-14 > $eachfile.mem
9
        rm $eachfile.v2
10
done

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.