Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/install-build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ case "$ID-$VERSION_ID" in
python3-wheel \
python3-yaml \
python3-dev \
srecord \
zlib1g-dev \
git \
make \
Expand Down
3 changes: 1 addition & 2 deletions dv/riscv_compliance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ How to run RISC-V Compliance on Ibex
have the following tools installed:
- Verilator
- fusesoc
- srecord (for `srec_cat`)
- A RV32 compiler

On Ubuntu/Debian, install the required tools like this:

```sh
sudo apt-get install srecord python3-pip
sudo apt-get install python3-pip
pip3 install --user -U fusesoc
```

Expand Down
3 changes: 0 additions & 3 deletions examples/simple_system/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ run stand-alone binaries. It contains:
<https://github.com/lowRISC/lowrisc-toolchains/releases>
* libelf and its development libraries.
On Debian/Ubuntu, install it by running `apt-get install libelf-dev`.
* srecord.
On Debian/Ubuntu, install it by running `apt-get install srecord`.
(Optional, needed for generating a vmem file)

## Building Simulation

Expand Down
4 changes: 2 additions & 2 deletions examples/sw/benchmarks/coremark/ibex/core_portme.mak
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ $(OPATH)$(PORT_DIR)/%$(OEXT) : %.s
port_postbuild:
riscv32-unknown-elf-objdump -SD $(OPATH)coremark.elf > $(OPATH)coremark.dis
riscv32-unknown-elf-objcopy -O binary $(OPATH)coremark.elf $(OPATH)coremark.bin
srec_cat $(OPATH)coremark.bin -binary -offset 0x0000 -byte-swap 4 -o $(OPATH)coremark.vmem -vmem

riscv32-unknown-elf-objcopy -O verilog --reverse-bytes=4 --verilog-data-width=4 \
$(OPATH)coremark.elf $(OPATH)coremark.vmem

# FLAG : OPATH
# Path to the output folder. Default - current folder.
Expand Down
10 changes: 3 additions & 7 deletions examples/sw/simple_system/common/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,11 @@ endif
%.dis: %.elf
$(OBJDUMP) -fhSD $^ > $@

# Note: this target requires the srecord package to be installed.
# XXX: This could be replaced by objcopy once
# https://sourceware.org/bugzilla/show_bug.cgi?id=19921
# is widely available.
%.vmem: %.bin
srec_cat $^ -binary -offset 0x0000 -byte-swap 4 -o $@ -vmem
%.vmem: %.elf
$(OBJCOPY) -O verilog --reverse-bytes=4 --verilog-data-width=4 $< $@

%.bin: %.elf
$(OBJCOPY) -O binary $^ $@
$(OBJCOPY) -O binary $< $@

%.o: %.c
$(CC) $(CFLAGS) -MMD -c $(INCS) -o $@ $<
Expand Down
Loading