Repository navigation
Expand file tree
/
Copy pathparity-checker.rgate
More file actions
1 lines (1 loc) · 3.56 KB
/
Copy pathparity-checker.rgate
File metadata and controls
1 lines (1 loc) · 3.56 KB
1
{"format":"rgate","version":1,"circuit":{"title":"8-bit parity checker","root":"main","modules":[{"name":"main","gates":[{"id":1,"name":"DATA","kind":"dip","position":{"x":140.0,"y":100.0},"rotation":0,"width":8,"input_count":2,"delay":1,"period":500,"initial":{"bits":["Low","Low","Low","Low","Low","Low","Low","Low"]},"pins":[{"name":"Z","direction":"output","width":8,"offset":{"x":0.0,"y":10.0},"net":1}],"text":"","show_name":true,"config":{}},{"id":2,"name":"parity","kind":"reduce_xor","position":{"x":360.0,"y":100.0},"rotation":0,"width":8,"input_count":2,"delay":1,"period":500,"initial":{"bits":["Low","Low","Low","Low","Low","Low","Low","Low"]},"pins":[{"name":"I","direction":"input","width":8,"offset":{"x":-45.0,"y":0.0},"net":1},{"name":"Z","direction":"output","width":1,"offset":{"x":45.0,"y":0.0},"net":2}],"text":"","show_name":true,"config":{}},{"id":3,"name":"even","kind":"not","position":{"x":580.0,"y":100.0},"rotation":0,"width":1,"input_count":2,"delay":1,"period":500,"initial":{"bits":["Low"]},"pins":[{"name":"I","direction":"input","width":1,"offset":{"x":-6.0,"y":0.0},"net":2},{"name":"Z","direction":"output","width":1,"offset":{"x":10.0,"y":0.0},"net":3}],"text":"","show_name":true,"config":{}},{"id":4,"name":"BITS","kind":"led","position":{"x":800.0,"y":100.0},"rotation":0,"width":8,"input_count":2,"delay":1,"period":500,"initial":{"bits":["Low","Low","Low","Low","Low","Low","Low","Low"]},"pins":[{"name":"I","direction":"input","width":8,"offset":{"x":0.0,"y":7.0},"net":1}],"text":"","show_name":true,"config":{"led_display":"bar"}},{"id":5,"name":"ODD","kind":"led","position":{"x":1020.0,"y":100.0},"rotation":0,"width":1,"input_count":2,"delay":1,"period":500,"initial":{"bits":["Low"]},"pins":[{"name":"I","direction":"input","width":1,"offset":{"x":0.0,"y":7.0},"net":2}],"text":"","show_name":true,"config":{}},{"id":6,"name":"EVEN","kind":"led","position":{"x":140.0,"y":265.0},"rotation":0,"width":1,"input_count":2,"delay":1,"period":500,"initial":{"bits":["Low"]},"pins":[{"name":"I","direction":"input","width":1,"offset":{"x":0.0,"y":7.0},"net":3}],"text":"","show_name":true,"config":{}},{"id":7,"name":"instructions","kind":"comment","position":{"x":80.0,"y":520.0},"rotation":0,"width":1,"input_count":2,"delay":1,"period":500,"initial":{"bits":["Low"]},"pins":[],"text":"8-bit parity checker. Double-click DATA during simulation to set hex.\nODD=1 when an odd number of data bits are high; EVEN is its inverse.\nTry 00, 01, 03, 7F, FF and probe the reduction XOR.","show_name":true,"config":{}}],"nets":[{"id":1,"name":"data","width":8,"show_name":true,"port":null},{"id":2,"name":"odd","width":1,"show_name":true,"port":null},{"id":3,"name":"even","width":1,"show_name":true,"port":null}],"wires":[{"id":1,"net":1,"points":[{"x":140.0,"y":110.0},{"x":140.0,"y":123.0},{"x":303.0,"y":123.0},{"x":303.0,"y":100.0},{"x":315.0,"y":100.0}],"start":{"gate":1,"pin":"Z"},"end":{"gate":2,"pin":"I"}},{"id":2,"net":1,"points":[{"x":140.0,"y":110.0},{"x":140.0,"y":134.0},{"x":800.0,"y":134.0},{"x":800.0,"y":107.0}],"start":{"gate":1,"pin":"Z"},"end":{"gate":4,"pin":"I"}},{"id":3,"net":2,"points":[{"x":405.0,"y":100.0},{"x":574.0,"y":100.0}],"start":{"gate":2,"pin":"Z"},"end":{"gate":3,"pin":"I"}},{"id":4,"net":2,"points":[{"x":405.0,"y":100.0},{"x":417.0,"y":100.0},{"x":417.0,"y":119.0},{"x":1020.0,"y":119.0},{"x":1020.0,"y":107.0}],"start":{"gate":2,"pin":"Z"},"end":{"gate":5,"pin":"I"}},{"id":5,"net":3,"points":[{"x":590.0,"y":100.0},{"x":602.0,"y":100.0},{"x":602.0,"y":284.0},{"x":140.0,"y":284.0},{"x":140.0,"y":272.0}],"start":{"gate":3,"pin":"Z"},"end":{"gate":6,"pin":"I"}}]}]}}