Nexus is an interpreter for a custom programming language, made for Xilinx's Nexys A7 FPGA.
The syntax is very simple and supports programming some of Nexys A7's outputs, such as LEDs.
Syntax: [INSTRUCTION] (PARAMETERS)
Syntax: LED [id] [state]
state
is eitherON
orOFF
Examples:
LED 0 ON
LED 1 OFF
Syntax: CLED [id] [state]
state
is eitherON
,OFF
orR
(red),G
(green),B
(blue)- if
state
isON
, color is set to white - if
state
==OFF
, led turns off
Examples:
CLED 1 G
CLED 0 ON
CLED 1 OFF
Syntax: CLRS [color]
color
is a 1-char hex value (0-9, A-F) - currently only works for values 0-3
Examples:
CLRS 0
CLRS 3
The project is licensed under the MIT license.