The display runs at 1280x1024 60 Hz from a second MMCM (108 MHz pixel clock), one pixel per clock through a four-stage pipeline. 80 columns show 80x32 cells of 16x32 pixels (the 8x16 font doubled); CSI ?3 h switches to 132x64 cells of 8x16 pixels, centred, and CSI ?3 l back, both clearing the screen and margins as a VT100 does. The 320x240 graphics layer is drawn 4x4 in the top 960 lines, so 80-column row r still meets graphics line 8(r-1). The terminal engine has 6-bit rows and 8-bit columns, a 132-cell row stride in both layouts (so the copy engine is unchanged), 132 tab stops and 3-digit cursor reports. The character RAM holds two 132x64 pages (normal and alternate) and is read on the pixel clock. BASIC's LOCATE takes rows up to 64 and columns up to 132. terminfo has basys3 (80x32) and basys3-w (132x64). The testbench reads the 132-cell layout, checks 1280x1024 sync timing, captures 1280x1024 frames and tests DECCOLM both ways. Timing met (0.044 ns at 90 MHz CPU, 108 MHz pixel); 46 of 50 BRAMs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
768 B
Plaintext
25 lines
768 B
Plaintext
# terminfo for the Basys 3 FPGA terminal: a VT220 with 16 ANSI colours,
|
|
# underline, blink, 80x32 (basys3) or 132x64 after ESC[?3h (basys3-w).
|
|
# tic -x -o ~/.terminfo terminfo/basys3.ti then export TERM=basys3
|
|
basys3|Basys 3 FPGA VT220 terminal with ANSI colour,
|
|
lines#32, cols#80,
|
|
colors#16, pairs#256,
|
|
op=\E[39;49m,
|
|
setaf=\E[%?%p1%{8}%<%t3%p1%d%e9%p1%{8}%-%d%;m,
|
|
setab=\E[%?%p1%{8}%<%t4%p1%d%e10%p1%{8}%-%d%;m,
|
|
invis=\E[8m,
|
|
rmso=\E[27m, rmul=\E[24m,
|
|
sgr0=\E[m\017\E(B,
|
|
kbs=\177,
|
|
khome=\E[1~, kend=\E[4~,
|
|
kf5=\E[15~,
|
|
indn=\E[%p1%dS, rin=\E[%p1%dT,
|
|
cnl=\E[%p1%dE, cpl=\E[%p1%dF,
|
|
hpa=\E[%i%p1%dG, vpa=\E[%i%p1%dd,
|
|
cbt=\E[Z,
|
|
use=vt220,
|
|
basys3-w|Basys 3 FPGA terminal in 132-column mode,
|
|
lines#64, cols#132,
|
|
is2=\E[?3h, rs2=\E[?3h,
|
|
use=basys3,
|