- VGA 640x480@60 text display, 8x16 CP437 font ROM from Linux console fonts - USB HID keyboard (PS/2 via onboard PIC24), scan code set 2 to ASCII with xterm sequences for cursor/editing keys - UART RX/TX with switch-selectable baud, local echo option - Terminal engine: control codes, deferred wrap, hardware scroll, VT100/ANSI subset (cursor moves, erase, reverse video, cursor hide) - Vivado build/program/flash scripts and xsim whole-design testbench Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
493 B
Bash
Executable File
15 lines
493 B
Bash
Executable File
#!/bin/bash
|
|
# Run the testbench in Vivado's simulator; output lands in sim/work.
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
ROOT=$(pwd)
|
|
source scripts/vivado_env.sh
|
|
mkdir -p sim/work
|
|
cd sim/work
|
|
xvlog -d FONT_FILE="\"$ROOT/font/font.mem\"" "$ROOT"/rtl/*.v "$ROOT"/sim/tb_terminal.v
|
|
xelab -debug off tb_terminal -s tb_terminal
|
|
xsim tb_terminal -R
|
|
if command -v python3 >/dev/null; then
|
|
python3 -c "from PIL import Image; Image.open('frame.ppm').save('frame.png')" && echo "wrote sim/work/frame.png"
|
|
fi
|