- 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>
24 lines
789 B
Tcl
24 lines
789 B
Tcl
# Non-project Vivado build: vivado -mode batch -source scripts/build.tcl
|
|
set root [file normalize [file dirname [info script]]/..]
|
|
set out $root/build
|
|
file mkdir $out
|
|
|
|
read_verilog [glob $root/rtl/*.v]
|
|
read_mem $root/font/font.mem
|
|
read_xdc $root/constraints/basys3.xdc
|
|
|
|
synth_design -top basys3_terminal -part xc7a35tcpg236-1
|
|
opt_design
|
|
place_design
|
|
route_design
|
|
|
|
report_utilization -file $out/utilization.rpt
|
|
report_timing_summary -file $out/timing.rpt
|
|
write_bitstream -force $out/basys3_terminal.bit
|
|
write_cfgmem -force -format mcs -interface SPIx4 -size 4 \
|
|
-loadbit "up 0x0 $out/basys3_terminal.bit" $out/basys3_terminal.mcs
|
|
|
|
set wns [get_property SLACK [get_timing_paths -max_paths 1 -setup]]
|
|
puts "Worst setup slack: $wns ns"
|
|
if {$wns < 0} { error "timing not met" }
|