aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bouncing-ball/bouncing-ball.xpr9
-rwxr-xr-xsrc/bitmap-ball.py4
-rw-r--r--src/makefile4
3 files changed, 7 insertions, 10 deletions
diff --git a/bouncing-ball/bouncing-ball.xpr b/bouncing-ball/bouncing-ball.xpr
index 79c6b38..87cca02 100644
--- a/bouncing-ball/bouncing-ball.xpr
+++ b/bouncing-ball/bouncing-ball.xpr
@@ -133,6 +133,7 @@
</Config>
</FileSet>
<FileSet Name="sim_1" Type="SimulationSrcs" RelSrcDir="$PSRCDIR/sim_1" RelGenDir="$PGENDIR/sim_1">
+ <Filter Type="Srcs"/>
<Config>
<Option Name="DesignMode" Val="RTL"/>
<Option Name="TopModule" Val="main"/>
@@ -187,9 +188,7 @@
<Runs Version="1" Minor="19">
<Run Id="synth_1" Type="Ft3:Synth" SrcSet="sources_1" Part="xc7a35tcpg236-1" ConstrsSet="constrs_1" Description="Vivado Synthesis Defaults" AutoIncrementalCheckpoint="true" IncrementalCheckpoint="$PSRCDIR/utils_1/imports/synth_1/main.dcp" WriteIncrSynthDcp="false" State="current" Dir="$PRUNDIR/synth_1" IncludeInArchive="true" IsChild="false" AutoIncrementalDir="$PSRCDIR/utils_1/imports/synth_1" AutoRQSDir="$PSRCDIR/utils_1/imports/synth_1">
<Strategy Version="1" Minor="2">
- <StratHandle Name="Vivado Synthesis Defaults" Flow="Vivado Synthesis 2022">
- <Desc>Vivado Synthesis Defaults</Desc>
- </StratHandle>
+ <StratHandle Name="Vivado Synthesis Defaults" Flow="Vivado Synthesis 2022"/>
<Step Id="synth_design"/>
</Strategy>
<GeneratedRun Dir="$PRUNDIR" File="gen_run.xml"/>
@@ -199,9 +198,7 @@
</Run>
<Run Id="impl_1" Type="Ft2:EntireDesign" Part="xc7a35tcpg236-1" ConstrsSet="constrs_1" Description="Default settings for Implementation." AutoIncrementalCheckpoint="false" WriteIncrSynthDcp="false" State="current" Dir="$PRUNDIR/impl_1" SynthRun="synth_1" IncludeInArchive="true" IsChild="false" GenFullBitstream="true" AutoIncrementalDir="$PSRCDIR/utils_1/imports/impl_1" AutoRQSDir="$PSRCDIR/utils_1/imports/impl_1">
<Strategy Version="1" Minor="2">
- <StratHandle Name="Vivado Implementation Defaults" Flow="Vivado Implementation 2022">
- <Desc>Default settings for Implementation.</Desc>
- </StratHandle>
+ <StratHandle Name="Vivado Implementation Defaults" Flow="Vivado Implementation 2022"/>
<Step Id="init_design"/>
<Step Id="opt_design"/>
<Step Id="power_opt_design"/>
diff --git a/src/bitmap-ball.py b/src/bitmap-ball.py
index d28609c..4d5be0c 100755
--- a/src/bitmap-ball.py
+++ b/src/bitmap-ball.py
@@ -1,14 +1,14 @@
#!/bin/python3
from PIL import Image
-import os
+import sys
WIDTH = 10
HEIGHT = 10
# return array of 12-bit color values (0bRRRGGGBBB)
def pixeldata():
- image = Image.open("./ball.png")
+ image = Image.open(sys.argv[-1]) # use last argument as input image file
pixels = image.load()
pixarr = []
for x in range(WIDTH):
diff --git a/src/makefile b/src/makefile
index 2906e87..5dff86d 100644
--- a/src/makefile
+++ b/src/makefile
@@ -1,6 +1,6 @@
pixeldata-ball.vhd: pixeldata-ball-top.vhd bitmap-ball.vhd pixeldata-ball-bottom.vhd
cat $^ > $@
-bitmap-ball.vhd: bitmap-ball.py
- python3 $< > $@
+bitmap-ball.vhd: ball.png
+ python3 bitmap-ball.py $< > $@