CircuitOnline/public/js/test.js

77 lines
81 KiB
JavaScript
Raw Normal View History

// iDecoder:http://localhost:8888/#x38FegWhzU 1
// C39:http://localhost:8888/#tqMEmyBD9Q 2
// C40:http://localhost:8888/#PEfvSpWnza 3
// C41:http://localhost:8888/#P0ONo1DTxB 4
// C43:http://localhost:8888/#o0kYwz43bj 5
// T-CLock:http://localhost:8888/#Uyp3abYgjP 6
// CS-http://localhost:8888/#vg36uAYpC2 7
// SAP-http://localhost:8888/#K7uYIBdgF0 8
// SAP complete: tJqKgNWys5
// Kept for backup purposes
var iDecoder;
var C39;
var C40;
var C41;
var C43;
var TCLOCK;
var SAP;
var CS;
(
CS={id:7,"allNodes":[{"x":-50,"y":-10,"type":0,"bitWidth":1,"connections":[10]},{"x":-50,"y":10,"type":0,"bitWidth":1,"connections":[12]},{"x":50,"y":-50,"type":1,"bitWidth":1,"connections":[61]},{"x":50,"y":-30,"type":1,"bitWidth":1,"connections":[59]},{"x":50,"y":-10,"type":1,"bitWidth":1,"connections":[57]},{"x":50,"y":10,"type":1,"bitWidth":1,"connections":[55]},{"x":50,"y":30,"type":1,"bitWidth":1,"connections":[53]},{"x":50,"y":50,"type":1,"bitWidth":1,"connections":[51]},{"x":-10,"y":0,"type":0,"bitWidth":1,"connections":[13]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[11]},{"x":300,"y":260,"type":2,"bitWidth":1,"connections":[0,11]},{"x":300,"y":240,"type":2,"bitWidth":1,"connections":[9,10]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[1]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[8]},{"x":-50,"y":-30,"type":0,"bitWidth":1,"connections":[23]},{"x":-50,"y":-10,"type":0,"bitWidth":1,"connections":[24]},{"x":-50,"y":10,"type":0,"bitWidth":1,"connections":[25]},{"x":-50,"y":30,"type":0,"bitWidth":1,"connections":[26]},{"x":50,"y":-40,"type":1,"bitWidth":1,"connections":[45]},{"x":50,"y":-20,"type":1,"bitWidth":1,"connections":[46]},{"x":50,"y":0,"type":1,"bitWidth":1,"connections":[48]},{"x":50,"y":20,"type":1,"bitWidth":1,"connections":[172]},{"x":50,"y":40,"type":1,"bitWidth":1,"connections":[31]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[14]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[15]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[16]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[17]},{"x":1160,"y":470,"type":2,"bitWidth":1,"connections":[130]},{"x":1160,"y":490,"type":2,"bitWidth":1,"connections":[200]},{"x":1160,"y":510,"type":2,"bitWidth":1,"connections":[202]},{"x":1160,"y":530,"type":2,"bitWidth":1,"connections":[206]},{"x":50,"y":550,"type":2,"bitWidth":1,"connections":[22,32]},{"x":50,"y":670,"type":2,"bitWidth":1,"connections":[31,33]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[32]},{"x":-50,"y":-50,"type":0,"bitWidth":1,"connections":[44]},{"x":-50,"y":-30,"type":0,"bitWidth":1,"connections":[47]},{"x":-50,"y":-10,"type":0,"bitWidth":1,"connections":[49]},{"x":-50,"y":10,"type":0,"bitWidth":1,"connections":[74]},{"x":-50,"y":30,"type":0,"bitWidth":1,"connections":[50]},{"x":-50,"y":50,"type":0,"bitWidth":1,"connections":[76]},{"x":50,"y":-30,"type":1,"bitWidth":1,"connections":[121]},{"x":50,"y":-10,"type":1,"bitWidth":1,"connections":[86]},{"x":50,"y":10,"type":1,"bitWidth":1,"connections":[85]},{"x":50,"y":30,"type":1,"bitWidth":1,"connections":[43,43,122]},{"x":130,"y":570,"type":2,"bitWidth":1,"connections":[34,45,50]},{"x":130,"y":470,"type":2,"bitWidth":1,"connections":[18,44,109]},{"x":120,"y":490,"type":2,"bitWidth":1,"connections":[19,47,103]},{"x":120,"y":590,"type":2,"bitWidth":1,"connections":[35,46]},{"x":110,"y":510,"type":2,"bitWidth":1,"connections":[20,49,104]},{"x":110,"y":610,"type":2,"bitWidth":1,"connections":[36,48]},{"x":130,"y":650,"type":2,"bitWidth":1,"connections":[38,44]},{"x":460,"y":320,"type":2,"bitWidth":1,"connections":[7,52]},{"x":460,"y":360,"type":2,"bitWidth":1,"connections":[51,72,133]},{"x":470,"y":300,"type":2,"bitWidth":1,"connections":[6,54]},{"x":470,"y":370,"type":2,"bitWidth":1,"connections":[53,107,131]},{"x":480,"y":280,"type":2,"bitWidth":1,"connections":[5,56]},{"x":480,"y":380,"type":2,"bitWidth":1,"connections":[55,129,186]},{"x":490,"y":260,"type":2,"bitWidth":1,"connections":[4,58]},{"x":490,"y":390,"type":2,"bitWidth":1,"connections":[57,120,253]},{"x":500,"y":240,"type":2,"bitWidth":1,"connections":[3,60]},{"x":500,"y":400,"type":2,"bitWidth":1,"connections":[59,66,65]},{"x":510,"y":220,"type":2,"bitWidth":1,"connections":[2,62]},{"x":510,"y":410,"type":2,"bitWidth":1,"connections":[61,64,84]},{"x":-140,"y":410,"type":2,"bitWidth":1,"connections":[84,252,252]},{"x":1160,"y":410,"type":2,"bitWidth":1,"connections":[62]},{"x":-60,"y":400,"type":2,"bitWidth":1,"connections":[60,251,251]},{"x":1160,"y":400,"type":2,"bitWidth":1,"connections":[60]},{"x":-40,"y":390,"type":2,"bitWidth":1,"
);
(
TCLOCK={id:6,"allNodes":[{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[41]},{"x":-20,"y":-10,"type":0,"bitWidth":1,"connections":[88]},{"x":20,"y":-10,"type":1,"bitWidth":1,"connections":[53]},{"x":10,"y":20,"type":0,"bitWidth":1,"connections":[43]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[]},{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[39]},{"x":-20,"y":-10,"type":0,"bitWidth":1,"connections":[53]},{"x":20,"y":-10,"type":1,"bitWidth":1,"connections":[55]},{"x":10,"y":20,"type":0,"bitWidth":1,"connections":[44]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[]},{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[37]},{"x":-20,"y":-10,"type":0,"bitWidth":1,"connections":[55]},{"x":20,"y":-10,"type":1,"bitWidth":1,"connections":[57]},{"x":10,"y":20,"type":0,"bitWidth":1,"connections":[89]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[]},{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[35]},{"x":-20,"y":-10,"type":0,"bitWidth":1,"connections":[57]},{"x":20,"y":-10,"type":1,"bitWidth":1,"connections":[59]},{"x":10,"y":20,"type":0,"bitWidth":1,"connections":[91]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[]},{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[33]},{"x":-20,"y":-10,"type":0,"bitWidth":1,"connections":[59]},{"x":20,"y":-10,"type":1,"bitWidth":1,"connections":[61]},{"x":10,"y":20,"type":0,"bitWidth":1,"connections":[93]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[]},{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[32]},{"x":-20,"y":-10,"type":0,"bitWidth":1,"connections":[61]},{"x":20,"y":-10,"type":1,"bitWidth":1,"connections":[63]},{"x":10,"y":20,"type":0,"bitWidth":1,"connections":[92]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[42]},{"x":540,"y":340,"type":2,"bitWidth":1,"connections":[32,34]},{"x":540,"y":320,"type":2,"bitWidth":1,"connections":[25,31]},{"x":480,"y":320,"type":2,"bitWidth":1,"connections":[20,34]},{"x":480,"y":340,"type":2,"bitWidth":1,"connections":[31,33,36]},{"x":420,"y":320,"type":2,"bitWidth":1,"connections":[15,36]},{"x":420,"y":340,"type":2,"bitWidth":1,"connections":[34,35,38]},{"x":360,"y":320,"type":2,"bitWidth":1,"connections":[10,38]},{"x":360,"y":340,"type":2,"bitWidth":1,"connections":[36,37,40]},{"x":300,"y":320,"type":2,"bitWidth":1,"connections":[5,40]},{"x":300,"y":340,"type":2,"bitWidth":1,"connections":[38,39,42]},{"x":240,"y":320,"type":2,"bitWidth":1,"connections":[0,42]},{"x":240,"y":340,"type":2,"bitWidth":1,"connections":[30,40,41]},{"x":280,"y":380,"type":2,"bitWidth":1,"connections":[3,45,90]},{"x":340,"y":380,"type":2,"bitWidth":1,"connections":[8,90]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[43]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[68]},{"x":-10,"y":-20,"type":0,"bitWidth":1,"connections":[64]},{"x":-10,"y":0,"type":0,"bitWidth":1,"connections":[72]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[79]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[80]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[84]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[67]},{"x":300,"y":300,"type":2,"bitWidth":1,"connections":[2,6,67]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[71]},{"x":360,"y":300,"type":2,"bitWidth":1,"connections":[7,11,71]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[75]},{"x":420,"y":300,"type":2,"bitWidth":1,"connections":[12,16,75]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[76]},{"x":480,"y":300,"type":2,"bitWidth":1,"connections":[17,21,76]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[83]},{"x":540,"y":300,"type":2,"bitWidth":1,"connections":[22,26,83]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[63]},{"x":600,"y":300,"type":2,"bitWidth":1,"connections":[27,62]},{"x":400,"y":160,"type":2,"bitWidth":1,"connections":[47,65]},{"x":320,"y":160,"type":2,"bitWidth":1,"connections":[64,66]},{"x":320,"y":270,"type":2,"bitWidth":1,"connections":[65,67]},{"x":300,"y":270,"type":2,"bitWidth":1,"connections":[52,53,66]},{"x":410,"y":210,"type":2,
);
(
C43={id:5,"allNodes":[{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[2]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[5]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[0]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[16]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[11]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[1]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[15]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[12]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[17]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[18]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[13]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[4]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[7]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[10]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[15]},{"x":220,"y":350,"type":2,"bitWidth":1,"connections":[6,14,16]},{"x":160,"y":350,"type":2,"bitWidth":1,"connections":[3,15]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[8]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[9]}],"Input":[{"x":140,"y":280,"objectType":"Input","label":"1","direction":"up","customData":{"nodes":{"output1":0},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":200,"y":280,"objectType":"Input","label":"4","direction":"up","customData":{"nodes":{"output1":1},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":220,"y":280,"objectType":"Input","label":"5","direction":"up","customData":{"nodes":{"output1":14},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":270,"y":280,"objectType":"Input","label":"9","direction":"up","customData":{"nodes":{"output1":17},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":290,"y":270,"objectType":"Input","label":"10","direction":"up","customData":{"nodes":{"output1":18},"values":{"state":0},"constructorParamaters":["up",1]}}],"Output":[{"x":150,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":11},"constructorParamaters":["down",1]}},{"x":210,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":12},"constructorParamaters":["down",1]}},{"x":280,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":13},"constructorParamaters":["down",1]}}],"NotGate":[],"OrGate":[],"AndGate":[{"x":150,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[2,3],"output1":4}}},{"x":210,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[5,6],"output1":7}}},{"x":280,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[8,9],"output1":10}}}],"NorGate":[],"NandGate":[],"XorGate":[],"XnorGate":[],"SevenSegDisplay":[],"HexDisplay":[],"Multiplexer":[],"BitSelector":[],"Splitter":[],"Power":[],"Ground":[],"ConstantVal":[],"TriState":[],"Adder":[],"Ram":[],"FlipFlop":[],"TTY":[],"Keyboard":[],"Clock":[],"SubCircuit":[],"nodes":[15,16],"name":"C43","timePeriod":500}
);
(
C41={id:4,"allNodes":[{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[21]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[22]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[12]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[23]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[24]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[13]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[25]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[16]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[14]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[27]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[17]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[15]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[2]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[5]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[8]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[11]},{"x":290,"y":350,"type":2,"bitWidth":1,"connections":[7,17]},{"x":360,"y":350,"type":2,"bitWidth":1,"connections":[10,16,28]},{"x":140,"y":290,"type":2,"bitWidth":1,"connections":[21]},{"x":340,"y":290,"type":2,"bitWidth":1,"connections":[27]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[21]},{"x":140,"y":300,"type":2,"bitWidth":1,"connections":[0,18,20]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[1]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[3]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[4]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[6]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[27]},{"x":340,"y":320,"type":2,"bitWidth":1,"connections":[9,19,26]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[17]}],"Input":[{"x":140,"y":270,"objectType":"Input","label":"1","direction":"up","customData":{"nodes":{"output1":20},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":160,"y":270,"objectType":"Input","label":"2","direction":"up","customData":{"nodes":{"output1":22},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":200,"y":270,"objectType":"Input","label":"4","direction":"up","customData":{"nodes":{"output1":23},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":220,"y":270,"objectType":"Input","label":"5","direction":"up","customData":{"nodes":{"output1":24},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":270,"y":270,"objectType":"Input","label":"9","direction":"up","customData":{"nodes":{"output1":25},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":340,"y":270,"objectType":"Input","label":"12","direction":"up","customData":{"nodes":{"output1":26},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":360,"y":270,"objectType":"Input","label":"13","direction":"up","customData":{"nodes":{"output1":28},"values":{"state":0},"constructorParamaters":["up",1]}}],"Output":[{"x":150,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":12},"constructorParamaters":["down",1]}},{"x":210,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":13},"constructorParamaters":["down",1]}},{"x":280,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":14},"constructorParamaters":["down",1]}},{"x":350,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":15},"constructorParamaters":["down",1]}}],"NotGate":[],"OrGate":[],"AndGate":[{"x":150,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[0,1],"output1":2}}},{"x":210,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[3,4],"output1":5}}},{"x":280,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[6,7],"output1":8}}},{"x":350,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[9,10],"output1":11}}}],"NorGate":[],"NandGate":[],"XorGa
);
(
C40={id:3,"allNodes":[{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[6]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[9]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[23]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[12]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[15]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[25]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[0]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[18]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[19]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[1]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[23]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[20]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[3]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[24]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[21]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[4]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[25]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[22]},{"x":160,"y":340,"type":2,"bitWidth":1,"connections":[7,23]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[8]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[11]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[14]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[17]},{"x":220,"y":340,"type":2,"bitWidth":1,"connections":[2,10,18]},{"x":290,"y":350,"type":2,"bitWidth":1,"connections":[13,25]},{"x":360,"y":350,"type":2,"bitWidth":1,"connections":[5,16,24]}],"Input":[{"x":140,"y":280,"objectType":"Input","label":"1","direction":"up","customData":{"nodes":{"output1":0},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":200,"y":280,"objectType":"Input","label":"4","direction":"up","customData":{"nodes":{"output1":1},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":220,"y":280,"objectType":"Input","label":"5","direction":"up","customData":{"nodes":{"output1":2},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":270,"y":280,"objectType":"Input","label":"9","direction":"up","customData":{"nodes":{"output1":3},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":340,"y":280,"objectType":"Input","label":"12","direction":"up","customData":{"nodes":{"output1":4},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":360,"y":280,"objectType":"Input","label":"13","direction":"up","customData":{"nodes":{"output1":5},"values":{"state":1},"constructorParamaters":["up",1]}}],"Output":[{"x":150,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":19},"constructorParamaters":["down",1]}},{"x":210,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":20},"constructorParamaters":["down",1]}},{"x":280,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":21},"constructorParamaters":["down",1]}},{"x":350,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":22},"constructorParamaters":["down",1]}}],"NotGate":[],"OrGate":[],"AndGate":[{"x":150,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[6,7],"output1":8}}},{"x":210,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[9,10],"output1":11}}},{"x":280,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[12,13],"output1":14}}},{"x":350,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[15,16],"output1":17}}}],"NorGate":[],"NandGate":[],"XorGate":[],"XnorGate":[],"SevenSegDisplay":[],"HexDisplay":[],"Multiplexer":[],"BitSelector":[],"Splitter":[],"Power":[],"Ground":[],"ConstantVal":[],"TriState":[],"Adder":[],"Ram":[],"FlipFlop":[],"TTY":[],"Keyboard":[],"Clock":[],"SubCircuit":[],"nodes":[18,23,24,25],"name":"C40","timePeriod":500}
);
(
C39={id:2,"allNodes":[{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[6]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[9]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[12]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[18]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[15]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[16]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[0]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[19]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[21]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[1]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[20]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[22]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[2]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[18]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[23]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[4]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[5]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[24]},{"x":290,"y":340,"type":2,"bitWidth":1,"connections":[3,13,20]},{"x":160,"y":340,"type":2,"bitWidth":1,"connections":[7,20]},{"x":220,"y":340,"type":2,"bitWidth":1,"connections":[10,18,19]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[8]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[11]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[14]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[17]}],"Input":[{"x":140,"y":280,"objectType":"Input","label":"1","direction":"up","customData":{"nodes":{"output1":0},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":200,"y":280,"objectType":"Input","label":"4","direction":"up","customData":{"nodes":{"output1":1},"values":{"state":0},"constructorParamaters":["up",1]}},{"x":270,"y":280,"objectType":"Input","label":"9","direction":"up","customData":{"nodes":{"output1":2},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":290,"y":280,"objectType":"Input","label":"10","direction":"up","customData":{"nodes":{"output1":3},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":340,"y":280,"objectType":"Input","label":"12","direction":"up","customData":{"nodes":{"output1":4},"values":{"state":1},"constructorParamaters":["up",1]}},{"x":360,"y":280,"objectType":"Input","label":"13","direction":"up","customData":{"nodes":{"output1":5},"values":{"state":1},"constructorParamaters":["up",1]}}],"Output":[{"x":150,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":21},"constructorParamaters":["down",1]}},{"x":210,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":22},"constructorParamaters":["down",1]}},{"x":280,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":23},"constructorParamaters":["down",1]}},{"x":350,"y":460,"objectType":"Output","label":"","direction":"down","customData":{"nodes":{"inp1":24},"constructorParamaters":["down",1]}}],"NotGate":[],"OrGate":[],"AndGate":[{"x":150,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[6,7],"output1":8}}},{"x":210,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[9,10],"output1":11}}},{"x":280,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[12,13],"output1":14}}},{"x":350,"y":390,"objectType":"AndGate","label":"","direction":"up","customData":{"constructorParamaters":["up","2",1],"nodes":{"inp":[15,16],"output1":17}}}],"NorGate":[],"NandGate":[],"XorGate":[],"XnorGate":[],"SevenSegDisplay":[],"HexDisplay":[],"Multiplexer":[],"BitSelector":[],"Splitter":[],"Power":[],"Ground":[],"ConstantVal":[],"TriState":[],"Adder":[],"Ram":[],"FlipFlop":[],"TTY":[],"Keyboard":[],"Clock":[],"SubCircuit":[],"nodes":[18,19,20],"name":"C39","timePeriod":500}
);
(
iDecoder={id:1,"allNodes":[{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[12]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[19]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[26]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[33]},{"x":150,"y":680,"type":2,"bitWidth":1,"connections":[81]},{"x":170,"y":670,"type":2,"bitWidth":1,"connections":[82]},{"x":190,"y":680,"type":2,"bitWidth":1,"connections":[83]},{"x":210,"y":680,"type":2,"bitWidth":1,"connections":[84]},{"x":-10,"y":0,"type":0,"bitWidth":1,"connections":[10]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[13]},{"x":330,"y":210,"type":2,"bitWidth":1,"connections":[8,11]},{"x":330,"y":200,"type":2,"bitWidth":1,"connections":[10,12]},{"x":150,"y":200,"type":2,"bitWidth":1,"connections":[0,11,75]},{"x":160,"y":210,"type":2,"bitWidth":1,"connections":[9,41]},{"x":160,"y":680,"type":2,"bitWidth":1,"connections":[69]},{"x":-10,"y":0,"type":0,"bitWidth":1,"connections":[17]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[20]},{"x":330,"y":250,"type":2,"bitWidth":1,"connections":[15,18]},{"x":330,"y":230,"type":2,"bitWidth":1,"connections":[17,19]},{"x":170,"y":230,"type":2,"bitWidth":1,"connections":[1,18,74]},{"x":180,"y":250,"type":2,"bitWidth":1,"connections":[16,42]},{"x":180,"y":680,"type":2,"bitWidth":1,"connections":[68]},{"x":-10,"y":0,"type":0,"bitWidth":1,"connections":[24]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[27]},{"x":330,"y":290,"type":2,"bitWidth":1,"connections":[22,25]},{"x":330,"y":270,"type":2,"bitWidth":1,"connections":[24,26]},{"x":190,"y":270,"type":2,"bitWidth":1,"connections":[2,25,67]},{"x":200,"y":290,"type":2,"bitWidth":1,"connections":[23,43]},{"x":200,"y":680,"type":2,"bitWidth":1,"connections":[63]},{"x":-10,"y":0,"type":0,"bitWidth":1,"connections":[31]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[34]},{"x":330,"y":330,"type":2,"bitWidth":1,"connections":[29,32]},{"x":330,"y":310,"type":2,"bitWidth":1,"connections":[31,33]},{"x":210,"y":310,"type":2,"bitWidth":1,"connections":[3,32,64]},{"x":220,"y":330,"type":2,"bitWidth":1,"connections":[30,44]},{"x":220,"y":680,"type":2,"bitWidth":1,"connections":[72]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[42]},{"x":-10,"y":-20,"type":0,"bitWidth":1,"connections":[41]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[43]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[44]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[45]},{"x":160,"y":360,"type":2,"bitWidth":1,"connections":[13,37,61]},{"x":180,"y":370,"type":2,"bitWidth":1,"connections":[20,36,62]},{"x":200,"y":390,"type":2,"bitWidth":1,"connections":[27,38,63]},{"x":220,"y":400,"type":2,"bitWidth":1,"connections":[34,39,66]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[40]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[62]},{"x":-10,"y":-20,"type":0,"bitWidth":1,"connections":[61]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[63]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[64]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[65]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[68]},{"x":-10,"y":-20,"type":0,"bitWidth":1,"connections":[69]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[67]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[66]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[70]},{"x":-10,"y":-10,"type":0,"bitWidth":1,"connections":[74]},{"x":-10,"y":-20,"type":0,"bitWidth":1,"connections":[75]},{"x":-10,"y":10,"type":0,"bitWidth":1,"connections":[73]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[72]},{"x":20,"y":0,"type":1,"bitWidth":1,"connections":[71]},{"x":160,"y":420,"type":2,"bitWidth":1,"connections":[41,47,69]},{"x":180,"y":430,"type":2,"bitWidth":1,"connections":[42,46,68]},{"x":200,"y":450,"type":2,"bitWidth":1,"connections":[28,43,48]},{"x":210,"y":460,"type":2,"bitWidth":1,"connections":[33,49,84]},{"x":10,"y":0,"type":0,"bitWidth":1,"connections":[50]},{"x":220,"y":520,"type":2,"bitWidth":1,"connections":[44,54,72]},{"x":190,"y":510,"type":2,"bitWidth":1,"connections":[26,53,7
(
SAP={id:8,"allNodes":[{"x":10,"y":0,"type":0,"bitWidth":4,"connections":[2]},{"x":10,"y":0,"type":0,"bitWidth":4,"connections":[5]},{"x":380,"y":250,"type":2,"bitWidth":4,"connections":[0,3]},{"x":440,"y":250,"type":2,"bitWidth":4,"connections":[2,127]},{"x":440,"y":750,"type":2,"bitWidth":4,"connections":[286]},{"x":510,"y":250,"type":2,"bitWidth":4,"connections":[1,6]},{"x":450,"y":250,"type":2,"bitWidth":4,"connections":[5,126]},{"x":450,"y":750,"type":2,"bitWidth":4,"connections":[285]},{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[32]},{"x":-20,"y":-10,"type":0,"bitWidth":4,"connections":[19]},{"x":20,"y":-10,"type":1,"bitWidth":4,"connections":[20]},{"x":10,"y":20,"type":0,"bitWidth":1,"connections":[35]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[48]},{"x":-20,"y":-10,"type":0,"bitWidth":4,"connections":[23]},{"x":-20,"y":0,"type":0,"bitWidth":4,"connections":[24]},{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[]},{"x":20,"y":0,"type":1,"bitWidth":4,"connections":[18]},{"x":20,"y":10,"type":1,"bitWidth":1,"connections":[]},{"x":180,"y":260,"type":2,"bitWidth":4,"connections":[16,19]},{"x":180,"y":310,"type":2,"bitWidth":4,"connections":[9,18]},{"x":240,"y":310,"type":2,"bitWidth":4,"connections":[10,21,43]},{"x":240,"y":220,"type":2,"bitWidth":4,"connections":[20,22]},{"x":110,"y":220,"type":2,"bitWidth":4,"connections":[21,23]},{"x":110,"y":250,"type":2,"bitWidth":4,"connections":[13,22]},{"x":40,"y":0,"type":1,"bitWidth":4,"connections":[14]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[147]},{"x":-10,"y":0,"type":0,"bitWidth":1,"connections":[146]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[29]},{"x":0,"y":0,"type":0,"bitWidth":1,"connections":[228]},{"x":-20,"y":870,"type":2,"bitWidth":1,"connections":[27,153,229]},{"x":-20,"y":180,"type":2,"bitWidth":1,"connections":[32]},{"x":10,"y":0,"type":1,"bitWidth":1,"connections":[114]},{"x":-20,"y":330,"type":2,"bitWidth":1,"connections":[8,30,58]},{"x":-10,"y":890,"type":2,"bitWidth":1,"connections":[114,85,155]},{"x":-10,"y":180,"type":2,"bitWidth":1,"connections":[36]},{"x":220,"y":380,"type":2,"bitWidth":1,"connections":[11,36]},{"x":-10,"y":380,"type":2,"bitWidth":1,"connections":[34,35,64]},{"x":250,"y":1040,"type":2,"bitWidth":1,"connections":[38,102]},{"x":250,"y":1090,"type":2,"bitWidth":1,"connections":[37,39]},{"x":-230,"y":1090,"type":2,"bitWidth":1,"connections":[38,40]},{"x":-230,"y":430,"type":2,"bitWidth":1,"connections":[39,41]},{"x":290,"y":430,"type":2,"bitWidth":1,"connections":[40,45]},{"x":450,"y":310,"type":2,"bitWidth":4,"connections":[44,126,136]},{"x":-10,"y":0,"type":0,"bitWidth":4,"connections":[20]},{"x":10,"y":0,"type":1,"bitWidth":4,"connections":[42]},{"x":0,"y":0,"type":0,"bitWidth":1,"connections":[41]},{"x":260,"y":1140,"type":2,"bitWidth":1,"connections":[47,106]},{"x":-210,"y":1140,"type":2,"bitWidth":1,"connections":[46,49]},{"x":200,"y":370,"type":2,"bitWidth":1,"connections":[12,49]},{"x":-210,"y":370,"type":2,"bitWidth":1,"connections":[47,48]},{"x":-20,"y":10,"type":0,"bitWidth":1,"connections":[58]},{"x":-20,"y":-10,"type":0,"bitWidth":4,"connections":[57]},{"x":20,"y":-10,"type":1,"bitWidth":4,"connections":[60]},{"x":10,"y":20,"type":0,"bitWidth":1,"connections":[63]},{"x":-10,"y":20,"type":0,"bitWidth":1,"connections":[203]},{"x":450,"y":460,"type":2,"bitWidth":4,"connections":[56,136,261]},{"x":170,"y":460,"type":2,"bitWidth":4,"connections":[55,57]},{"x":170,"y":490,"type":2,"bitWidth":4,"connections":[51,56]},{"x":-20,"y":510,"type":2,"bitWidth":1,"connections":[32,50,153]},{"x":250,"y":540,"type":2,"bitWidth":4,"connections":[60,83]},{"x":250,"y":490,"type":2,"bitWidth":4,"connections":[52,59]},{"x":250,"y":790,"type":2,"bitWidth":1,"connections":[62,104]},{"x":10,"y":790,"type":2,"bitWidth":1,"connections":[61,204]},{"x":220,"y":540,"type":2,"bitWidth":1,"connections":[53,64]},{"x":-10,"y":540,"type":2,"bitWidth":1,"connections":[36,63,155]},{"x":-10,"y":10,"type":0,"bitWidth":8,"connections":[72]},{"x":20,"y":-20,"type":0,"bitWidth":4,"connections":[76]},{"x":20,"y":0,"type"
console.log(iDecoder);
console.log(C39);
console.log(C40);
console.log(C41);
console.log(C43);
console.log(TCLOCK);
console.log(CS);
console.log(SAP);
data={}
data["name"] = "SAP";//prompt("EnterName:");
data["timePeriod"] = 500;
data.scopes=[iDecoder,C39,C40,C41,C43,TCLOCK,CS,SAP];
// data = JSON.parse(JSON.stringify(data));
console.log(data);
data = JSON.stringify(data);
console.log(data.length);
// console.log(data);
var http = new XMLHttpRequest();
http.open("POST", "./index.php", true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
var params = "data=" + data; // send the data
http.send(params);
http.onload = function() {
console.log(http.responseText);
// window.location.hash = http.responseText; // assign hash key
}