Show HN: H2 Forth CPU

Show HN: H2 Forth CPU

ISE needs to be on your path:

To make the C based toolchain:

To make a bit file that can be flashed to the target board:

To upload the bitfile to the target board:

To view the wave form generated by “make simulation”:

The C based CLI simulator can be invoked with:

Which will assemble the H2 Forth source file embed.fth, and run the assembled object file under the H2 simulator with the debugger activated. To read a value from the UART: iUart can be checked to see if data is present in the FIFO, if it is assert RXRE in the oUart register, on the next clock cycle the data will be present in the iUart register. The baud rate of the UART can be changed by rebuilding the VHDL project, bit length, parity bits and stop bits can only be changed with modifications to uart.vhd

The VGA Text device emulates a terminal which the user can talk to by writing to the oVT100 register.

Source: github.com