-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8e648a
commit 69a7acb
Showing
4 changed files
with
131 additions
and
15 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
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,12 @@ | ||
using "platforms/boards/zedboard.repl" | ||
|
||
dma: Verilated.VerilatedPeripheral @ sysbus <0x43c20000, +0x100> | ||
maxWidth: 32 | ||
// Changing frequency to a non-default value breaks timings in a trace. | ||
// But it improves a performance of Linux simulation. | ||
frequency: 1000000 | ||
limitBuffer: 1000 | ||
timeout: 20000 | ||
numberOfInterrupts: 2 | ||
address: "127.0.0.1" | ||
1 -> gic@31 |
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,42 @@ | ||
:name: FastVDMA Cosimulation on Zynq | ||
:description: This script runs Linux with built in FastVDMA driver on Zedboard. | ||
|
||
using sysbus | ||
$name?="Zynq-FastVDMA" | ||
mach create $name | ||
|
||
machine LoadPlatformDescription $ORIGIN/platform.repl | ||
|
||
sysbus Redirect 0xC0000000 0x0 0x10000000 | ||
|
||
$bin?=@https://dl.antmicro.com/projects/renode/zynq-fastvdma_vmlinux-s_13611036-802d102e9341668636631447e99389f79043c18d | ||
$rootfs?=@https://dl.antmicro.com/projects/renode/zynq-fastvdma_rootfs.ext2-s_33554432-7a53506ed3e6cdaf247280ad7025ff1aa4cb98c5 | ||
$dtb?=@https://dl.antmicro.com/projects/renode/zynq-fastvdma.dtb-s_12284-4f3a630a9bce9e0984151b95e9efa581ef7525bf | ||
|
||
### create externals ### | ||
showAnalyzer sysbus.uart1 | ||
|
||
## set timer frequency ## | ||
ttc0 Frequency 33333333 | ||
ttc1 Frequency 33333333 | ||
|
||
dma SimulationFilePathLinux @https://dl.antmicro.com/projects/renode/renode-dpi-axi_fastvdma-verilated-s_2198472-214cbf7bc6d0bec2845f6b1c1bf9a66e6bbf3fd0 | ||
dma SimulationFilePathWindows @https://dl.antmicro.com/projects/renode/renode-dpi-axi_fastvdma-verilated.exe-s_4639440-4529c753cc329e0608ad953660983133253aae58 | ||
|
||
macro reset | ||
""" | ||
### set registers ### | ||
|
||
cpu SetRegisterUnsafe 0 0x000 | ||
cpu SetRegisterUnsafe 1 0xD32 # board id | ||
cpu SetRegisterUnsafe 2 0x100 # device tree address | ||
|
||
### load binaries ### | ||
|
||
sysbus LoadELF $bin | ||
sysbus LoadFdt $dtb 0x100 "console=ttyPS0,115200 root=/dev/ram0 rw earlyprintk initrd=0x1a000000,32M" false | ||
sysbus ZeroRange 0x1a000000 0x800000 | ||
sysbus LoadBinary $rootfs 0x1a000000 | ||
""" | ||
|
||
runMacro $reset |