plunker에 simcirjs 그 4

개요



plunker에서 simcirjs를 시도했습니다.
3bit 가산기 만들어 보았다.

사진





샘플 코드


{
  "width":800,
  "height":400,
  "showToolbox":true,
  "toolbox":[
    {"type":"In"},
    {"type":"Out"},
    {"type":"Joint"},
    {"type":"DC"},
    {"type":"LED"},
    {"type":"PushOff"},
    {"type":"PushOn"},
    {"type":"Toggle"},
    {"type":"BUF"},
    {"type":"NOT"},
    {"type":"AND"},
    {"type":"NAND"},
    {"type":"OR"},
    {"type":"NOR"},
    {"type":"XOR"},
    {"type":"XNOR"},
    {"type":"OSC","freq":1,"label":"OSC(1Hz)"},
    {"type":"7seg"},
    {"type":"16seg"},
    {"type":"4bit7seg"},
    {"type":"RotaryEncoder"},
    {"type":"BusIn"},
    {"type":"BusOut"},
    {"type":"RS-FF"},
    {"type":"JK-FF"},
    {"type":"T-FF"},
    {"type":"D-FF"},
    {"type":"8bitCounter"},
    {"type":"HalfAdder"},
    {"type":"FullAdder"},
    {"type":"4bitAdder"},
    {"type":"2to4BinaryDecoder"},
    {"type":"3to8BinaryDecoder"},
    {"type":"4to16BinaryDecoder"},
    {"type":"AltFullAdder"},
    {"type":"Transmitter"},
    {"type":"Delay"},
    {"type":"NumSrc"},
    {"type":"NumDsp"},
    {"type":"DSO"}
  ],
  "devices":[
    {"type":"OSC","freq":1,"label":"OSC(1Hz)","id":"dev0","x":32,"y":152},
    {"type":"8bitCounter","id":"dev1","x":96,"y":96,"label":"8bitCounter"},
    {"type":"4bit7seg","id":"dev2","x":192,"y":104,"label":"4bit7seg"},
    {"type":"4bit7seg","id":"dev3","x":192,"y":200,"label":"4bit7seg"},
    {"type":"HalfAdder","id":"dev4","x":312,"y":80,"label":"HalfAdder"},
    {"type":"FullAdder","id":"dev5","x":312,"y":144,"label":"FullAdder"},
    {"type":"FullAdder","id":"dev6","x":312,"y":224,"label":"FullAdder"},
    {"type":"4bit7seg","id":"dev7","x":480,"y":128,"label":"4bit7seg"}
  ],
  "connectors":[
    {"from":"dev1.in0","to":"dev0.out0"},
    {"from":"dev1.in1","to":"dev0.out0"},
    {"from":"dev2.in0","to":"dev1.out0"},
    {"from":"dev2.in1","to":"dev1.out1"},
    {"from":"dev2.in2","to":"dev1.out2"},
    {"from":"dev3.in0","to":"dev1.out3"},
    {"from":"dev3.in1","to":"dev1.out4"},
    {"from":"dev3.in2","to":"dev1.out5"},
    {"from":"dev4.in0","to":"dev1.out0"},
    {"from":"dev4.in1","to":"dev1.out3"},
    {"from":"dev5.in0","to":"dev4.out1"},
    {"from":"dev5.in1","to":"dev1.out1"},
    {"from":"dev5.in2","to":"dev1.out4"},
    {"from":"dev6.in0","to":"dev5.out1"},
    {"from":"dev6.in1","to":"dev1.out2"},
    {"from":"dev6.in2","to":"dev1.out5"},
    {"from":"dev7.in0","to":"dev4.out0"},
    {"from":"dev7.in1","to":"dev5.out0"},
    {"from":"dev7.in2","to":"dev6.out0"},
    {"from":"dev7.in3","to":"dev6.out1"}
  ]
}

아티팩트



이상.

좋은 웹페이지 즐겨찾기