1 parent 6b932f3 commit 152f314Copy full SHA for 152f314
2 files changed
.gitignore
@@ -11,3 +11,4 @@ test/sim_build
11
test/__pycache__/
12
test/results.xml
13
test/gate_level_netlist.v
14
+test/.venv/
test/run.sh
@@ -0,0 +1,13 @@
1
+#!/bin/bash
2
+# Run tt-lfsr32 cocotb tests. Activates the Python 3.13 venv automatically.
3
+# Usage: ./run.sh (RTL sim)
4
+# ./run.sh GATES=yes (gate-level sim)
5
+cd "$(dirname "$0")" || exit 1
6
+
7
+if [ ! -d .venv ]; then
8
+ echo "venv missing — creating it with python3.13 ..."
9
+ python3.13 -m venv .venv && .venv/bin/pip install -r requirements.txt || exit 1
10
+fi
+source .venv/bin/activate
+make "$@"
0 commit comments