sourcelibs/Hex1000/demos/board.xtl

1⍝!/usr/bin/env xetal 2⍝ HEX1000 with the board's glue, at the glue's ports: the specification 3⍝ its circuit (demos/hex1000-board.xir, rtl/hex1000-board.v) must 4⍝ reproduce clock for clock. The characters 12+34= arrive one a clock 5⍝ from reset, as a serial receiver would hand them over; the machine 6⍝ and the glue run 1710 clocks. Line 1: the character given at each 7⍝ clock (0: none); line 2: whether a frame was just completed, after 8⍝ reset and after each clock; then the eight digit latches, digit 0 9⍝ first, a row after reset and after each clock. Run with 10⍝ "just demo-lib Hex1000 board". 11ʰˣ⁼u̲se< "Hex1000" 12(cs, fs, ds) ← ʰˣCalcRom ʰˣw̲ires ("12+34=", 1710) 13cs 14fs 15ds