From 0545586aacc06add477b6df38cd50900698f6d9a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 3 Apr 2023 16:07:28 +0200 Subject: worky but janky integration done --- basys3/basys3.srcs/spi_tb.vhd | 1 + basys3/basys3.xpr | 4 +- src/demo.c | 183 +++++---------------- src/demo.h | 35 ---- src/ds.c | 2 + src/main.c | 13 +- src/makefile | 3 +- src/ppu/consts.h | 4 +- src/ppu/stm.c | 2 +- src/ppusim/mem.c | 2 +- src/stm32/main.c | 3 +- src/stm32/setup.c | 3 + .../test-image-sprites.txt | 104 ++++++++++++ 13 files changed, 169 insertions(+), 190 deletions(-) create mode 100644 test/ppu-stm-integration-demo/test-image-sprites.txt diff --git a/basys3/basys3.srcs/spi_tb.vhd b/basys3/basys3.srcs/spi_tb.vhd index 255f38b..fea96b9 100644 --- a/basys3/basys3.srcs/spi_tb.vhd +++ b/basys3/basys3.srcs/spi_tb.vhd @@ -21,6 +21,7 @@ begin RESET => RESET, DO => open, DI => SPI_DATA, + SR => '0', DCK => SPI_CLK, WEN => open); diff --git a/basys3/basys3.xpr b/basys3/basys3.xpr index f90ecdb..852d6c3 100644 --- a/basys3/basys3.xpr +++ b/basys3/basys3.xpr @@ -60,7 +60,7 @@