-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from nbosb/dev-restructure
Restructure
- Loading branch information
Showing
89 changed files
with
16,102 additions
and
2,602 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*/BUILD/* | ||
BUILD | ||
images | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
############################################################################## | ||
# # | ||
# Copyright 2024 MachineWare GmbH # | ||
# # | ||
# This software is licensed under the MIT license. # | ||
# A copy of the license can be found in the LICENSE file at the root # | ||
# of the source tree. # | ||
# # | ||
############################################################################## | ||
|
||
### General configuration #################################################### | ||
system.name = %BENCHMARK% | ||
system.config = ${cfg} | ||
system.cpu.ncores = 1 | ||
|
||
system.throttle.rtf = 0 | ||
|
||
# Specify simulation duration. Simulation will stop automatically once this | ||
# time-stamp is reached. Use integer values with suffixes s, ms, us or ns. If | ||
# you want to simulate infinitely, leave this commented out. | ||
# system.duration = 2s | ||
|
||
# TLM global quantum, a higher value improves performance but reduces timing | ||
# accuracy. Use integer values with suffixes s, ms, us or ns. | ||
system.quantum = 100us | ||
|
||
# Clock frequency | ||
system.clock_cpu.hz = 1000000000 # 1 GHz | ||
|
||
### CPU configuration ######################################################## | ||
system.cpu.gdb_port = 5555 | ||
system.cpu.gdb_wait = false | ||
system.cpu.gdb_echo = false | ||
system.cpu.symbols = ${dir}/%BENCHMARK%/%BENCHMARK%.elf | ||
|
||
for i : ${system.cpu.ncores} do | ||
system.cpu.arm${i}.gdb_port = 5210${i} | ||
system.cpu.arm${i}.gdb_wait = false | ||
done | ||
|
||
### Physical Address Map ##################################################### | ||
|
||
system.addr_ram = 0x00000000..0x0fffffff | ||
system.addr_hwrng = 0x10007000..0x10007fff | ||
system.addr_simdev = 0x10008000..0x10008fff | ||
system.addr_uart0 = 0x10009000..0x10009fff | ||
system.addr_uart1 = 0x1000a000..0x1000afff | ||
system.addr_uart2 = 0x1000b000..0x1000bfff | ||
system.addr_uart3 = 0x1000c000..0x1000cfff | ||
system.addr_sdhci = 0x1000d000..0x1000dfff | ||
system.addr_rtc = 0x1000e000..0x1000efff | ||
system.addr_gpio = 0x1000f000..0x1000ffff | ||
system.addr_lan0 = 0x10010000..0x1001ffff | ||
system.addr_spi = 0x10020000..0x10020fff | ||
system.cpu.addr_gic_distif = 0x10140000..0x10140fff | ||
system.cpu.addr_gic_cpuif = 0x10141000..0x10142fff | ||
system.cpu.addr_gic_vifctrl = 0x10143000..0x10144fff | ||
system.cpu.addr_gic_vcpuif = 0x10145000..0x10146fff | ||
|
||
### Interrupt Map ############################################################ | ||
|
||
system.irq_uart0 = 5 | ||
system.irq_uart1 = 6 | ||
system.irq_uart2 = 7 | ||
system.irq_uart3 = 8 | ||
system.irq_lan0 = 9 | ||
system.irq_sdhci = 10 | ||
system.irq_spi = 11 | ||
system.cpu.irq_gt_hyp = 10 | ||
system.cpu.irq_gt_virt = 11 | ||
system.cpu.irq_gt_ns = 14 | ||
system.cpu.irq_gt_s = 13 | ||
|
||
### Memory and IO peripherals configuration ################################## | ||
|
||
# Memory configuration | ||
system.ram.size = 0x10000000 # 256MB | ||
system.ram.images = ${dir}/%BENCHMARK%/%BENCHMARK%.bin@0x00000000 | ||
|
||
# Terminal configuration | ||
system.term0.backends = stdout # stdout|file|tap|null |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
BENCHMARK=$1 | ||
|
||
BUILD_DIR=/app/build/$BENCHMARK | ||
TMP_DIR=$BUILD_DIR/tmp | ||
BENCH_DIR=$TMP_DIR/$BENCHMARK | ||
|
||
echo "Posprocessing benchmark '$1'" | ||
|
||
rm -rf $TMP_DIR | ||
mkdir -p $BENCH_DIR | ||
|
||
# create/copy files | ||
cp $BUILD_DIR/$BENCHMARK.{bin,elf} $BENCH_DIR/ | ||
sed -e "s/%BENCHMARK%/${BENCHMARK}/g" /app/config/benchmark.cfg > ${TMP_DIR}/${BENCHMARK}.cfg | ||
|
||
# create tarball | ||
pushd ${TMP_DIR} > /dev/null | ||
tar -czf /app/images/${BENCHMARK}.tar.gz ./* | ||
popd > /dev/null |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
Submodule buildroot
updated
12071 files
Oops, something went wrong.