REST Interface
#1383
Replies: 1 comment
-
Howdy,
From my point of view,.. yes it would be a great add on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Digital to design a discreet logic CPU. The idea of an interface to connect to Digital to interact with circuits is fantastic, but the socket approach is not very flexible and the current implementation is very limited. I've therefore created a REST version of it that allows you to perform all of the functions via rest calls. Would people find this helpful if I created a pull request for it?
I'm also working on extending it as my CPU is modelled after 1970's minicomputers so I have a full front panel implemented with switches and buttons to load values into memory and run/halt the CPU. I am using a Javascript / React application to interact with my CPU including an assembler, but currently all it can do is upload the code to the CPU's ram because there is no way in the current API to flip the switches to enter the program's starting address and hit 'Run' to begin the CPU's execution. I would like to implement my complete front-panel in JS and give the webservice interface the ability to flip switches and press buttons on the CPU as well as read values to update my LED lights. I've also included a microcode editor in the JS and I currently export the microcode HEX and manually load it into the microcode rom. I'm hoping to extend the rest API to support this as well.
Another feature I have built is to connect the "Terminal" component to a websocket too so I can have a terminal embedded in my ide without having to deal with telnet.
Would these features be helpful for others? Shall I create a PR for it?
Another feature I would like to see is the ability to bind a keyboard key to the clock. When I'm in debug / single step mode I often have to zoom into a specific segment of the circuit and can't see the main clock (which in the layout is located on my front-panel area), so pressing 'C' to tick the clock would be very helpful. I'm currently exploring the code to understand it better and figure out how to implement the remote switch-flipping, so I might add this too.
Cheers,
Troy.
Beta Was this translation helpful? Give feedback.
All reactions