plunkerでsimcirjs その7

#概要

plunkerでsimcirjsやってみた。
3bit乗算器作ってみた。

#写真

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/18104/8dfb3399-b26c-4972-12e8-9d7225d1ac28.png)


#サンプルコード

```
{
  "width":900,
  "height":700,
  "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":"AND","id":"dev0","x":336,"y":168,"label":"AND"},
    {"type":"AND","id":"dev1","x":336,"y":224,"label":"AND"},
    {"type":"AND","id":"dev2","x":336,"y":104,"label":"AND"},
    {"type":"AND","id":"dev3","x":232,"y":224,"label":"AND"},
    {"type":"AND","id":"dev4","x":280,"y":224,"label":"AND"},
    {"type":"AND","id":"dev5","x":280,"y":288,"label":"AND"},
    {"type":"AND","id":"dev6","x":232,"y":288,"label":"AND"},
    {"type":"AND","id":"dev7","x":232,"y":352,"label":"AND"},
    {"type":"AND","id":"dev8","x":280,"y":168,"label":"AND"},
    {"type":"XOR","id":"dev9","x":416,"y":264,"label":"XOR"},
    {"type":"XOR","id":"dev10","x":416,"y":320,"label":"XOR"},
    {"type":"XOR","id":"dev11","x":456,"y":152,"label":"XOR"},
    {"type":"XOR","id":"dev12","x":456,"y":104,"label":"XOR"},
    {"type":"XOR","id":"dev13","x":520,"y":144,"label":"XOR"},
    {"type":"XOR","id":"dev14","x":504,"y":312,"label":"XOR"},
    {"type":"4bit7seg","id":"dev15","x":616,"y":288,"label":"4bit7seg"},
    {"type":"4bit7seg","id":"dev16","x":616,"y":384,"label":"4bit7seg"},
    {"type":"4bit7seg","id":"dev17","x":616,"y":480,"label":"4bit7seg"},
    {"type":"FullAdder","id":"dev18","x":448,"y":208,"label":"FullAdder"},
    {"type":"HalfAdder","id":"dev19","x":536,"y":224,"label":"HalfAdder"},
    {"type":"4bit7seg","id":"dev20","x":616,"y":184,"label":"4bit7seg"},
    {"type":"FullAdder","id":"dev21","x":512,"y":48,"label":"FullAdder"},
    {"type":"8bitCounter","id":"dev22","x":48,"y":248,"label":"8bitCounter"},
    {"type":"OSC","freq":1,"label":"OSC(1Hz)","id":"dev23","x":8,"y":296},
    {"type":"HalfAdder","id":"dev24","x":296,"y":416,"label":"HalfAdder"},
    {"type":"HalfAdder","id":"dev25","x":504,"y":384,"label":"HalfAdder"},
    {"type":"FullAdder","id":"dev26","x":392,"y":376,"label":"FullAdder"}
  ],
  "connectors":[
    {"from":"dev0.in0","to":"dev22.out1"},
    {"from":"dev0.in1","to":"dev22.out5"},
    {"from":"dev1.in0","to":"dev22.out0"},
    {"from":"dev1.in1","to":"dev22.out5"},
    {"from":"dev2.in0","to":"dev22.out2"},
    {"from":"dev2.in1","to":"dev22.out5"},
    {"from":"dev3.in0","to":"dev22.out2"},
    {"from":"dev3.in1","to":"dev22.out3"},
    {"from":"dev4.in0","to":"dev22.out1"},
    {"from":"dev4.in1","to":"dev22.out4"},
    {"from":"dev5.in0","to":"dev22.out0"},
    {"from":"dev5.in1","to":"dev22.out4"},
    {"from":"dev6.in0","to":"dev22.out1"},
    {"from":"dev6.in1","to":"dev22.out3"},
    {"from":"dev7.in0","to":"dev22.out0"},
    {"from":"dev7.in1","to":"dev22.out3"},
    {"from":"dev8.in0","to":"dev22.out2"},
    {"from":"dev8.in1","to":"dev22.out4"},
    {"from":"dev9.in0","to":"dev1.out0"},
    {"from":"dev9.in1","to":"dev4.out0"},
    {"from":"dev10.in0","to":"dev3.out0"},
    {"from":"dev10.in1","to":"dev24.out1"},
    {"from":"dev11.in0","to":"dev25.out1"},
    {"from":"dev11.in1","to":"dev26.out1"},
    {"from":"dev12.in0","to":"dev0.out0"},
    {"from":"dev12.in1","to":"dev8.out0"},
    {"from":"dev13.in0","to":"dev12.out0"},
    {"from":"dev13.in1","to":"dev11.out0"},
    {"from":"dev14.in0","to":"dev9.out0"},
    {"from":"dev14.in1","to":"dev10.out0"},
    {"from":"dev15.in0","to":"dev7.out0"},
    {"from":"dev15.in1","to":"dev24.out0"},
    {"from":"dev15.in2","to":"dev14.out0"},
    {"from":"dev16.in0","to":"dev22.out3"},
    {"from":"dev16.in1","to":"dev22.out4"},
    {"from":"dev16.in2","to":"dev22.out5"},
    {"from":"dev17.in0","to":"dev22.out0"},
    {"from":"dev17.in1","to":"dev22.out1"},
    {"from":"dev17.in2","to":"dev22.out2"},
    {"from":"dev18.in0","to":"dev26.out1"},
    {"from":"dev18.in1","to":"dev0.out0"},
    {"from":"dev18.in2","to":"dev8.out0"},
    {"from":"dev19.in0","to":"dev18.out0"},
    {"from":"dev19.in1","to":"dev25.out1"},
    {"from":"dev20.in0","to":"dev13.out0"},
    {"from":"dev20.in1","to":"dev21.out0"},
    {"from":"dev20.in2","to":"dev21.out1"},
    {"from":"dev21.in0","to":"dev2.out0"},
    {"from":"dev21.in1","to":"dev19.out1"},
    {"from":"dev21.in2","to":"dev18.out1"},
    {"from":"dev22.in0","to":"dev23.out0"},
    {"from":"dev22.in1","to":"dev23.out0"},
    {"from":"dev24.in0","to":"dev5.out0"},
    {"from":"dev24.in1","to":"dev6.out0"},
    {"from":"dev25.in0","to":"dev26.out0"},
    {"from":"dev25.in1","to":"dev24.out1"},
    {"from":"dev26.in0","to":"dev1.out0"},
    {"from":"dev26.in1","to":"dev4.out0"},
    {"from":"dev26.in2","to":"dev3.out0"}
  ]
}
```

#成果物

https://embed.plnkr.co/OAzI8QjxkhZ59NMi7wLR/


以上。