Closed DmitrySoshnikov closed 6 years ago
Script parser support is added in https://github.com/DmitrySoshnikov/hdl-js/commit/858e6f451d80c0f4ade96e51f8ade3faca2b5f98.
Base script interpreter is added in https://github.com/DmitrySoshnikov/hdl-js/commit/6b86a4541131966936e7f50de86808d3aa9f8896.
CLI support is added in https://github.com/DmitrySoshnikov/hdl-js/commit/c4d174e490c01b549c60670d0b7c016c12d61f65.
The
--exec-on-data
already allows accepting testing data, and validating the outputs. In addition we can provide an ability to do scripted testing of the pins, and manually call some events (liketick
,tock
, etc) in the scripts. This can be compatible with the nand2tetris script testing.TODO:
Example testing
And
:Output: