inda19plusplus / logik

Logisim clone
MIT License
2 stars 5 forks source link

Simulation #38

Closed default-username-852 closed 4 years ago

default-username-852 commented 4 years ago

This PR adds code to simulate circuits and an interface to let C# interact with it. The code has been tested but there might be bugs still present. There is also a lack of components which will have to be added in a separate PR.

Resolves #24

default-username-852 commented 4 years ago

I can definitely include a way for the frontend to query the state of the subnets and ports in this PR. It shouldn't be too much work.

NogginBops commented 4 years ago

A note about querying state is that we probably want to be able to query the state of a subnet as well as ports of a component. It should be easy to add as you should be able to get the subnet a given components ports are connected to. An interesting thing to consider with the way we have it defined atm where a port with no connections doesn't have a subnet would mean that it wouldn't have a value, which is not what we want to display. If we have an and gate with two inputs connected but no output connected we want to still show the correct output value on the output pin.