17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 06:19:19 +02:00
Files
maszyna/tools/vehicle_graph/tests/loop-deferred.vhg

16 lines
610 B
Plaintext

// expect: ok
// the same self-holding circuit as loop.vhg, closed through a unit delay
{ "format": "maszyna-vehicle-graph", "version": 2, "nodes": [
{ "id": "start", "type": "cab.switch" },
{ "id": "hold", "type": "logic.or" },
{ "id": "coil", "type": "logic.and" },
{ "id": "stop", "type": "logic.const", "params": { "value": 1 } },
{ "id": "contact", "type": "logic.delay" }
], "connections": [
{ "from": "start.pos", "to": "hold.a" },
{ "from": "contact.q", "to": "hold.b" },
{ "from": "hold.q", "to": "coil.a" },
{ "from": "stop.q", "to": "coil.b" },
{ "from": "coil.q", "to": "contact.a" }
] }