build_preset
Build verified Logisim circuits from presets such as adders, multiplexers, decoders, and comparators, configuring bit widths and saving to a specified path.
Instructions
Textbook circuits from gates: half_adder, full_adder, ripple_adder (bits 1..8, default 4), mux (select_bits 1..3, default 1; inputs D0.., S..), decoder (bits 1..3, default 2, optional EN), comparator (bits 1..4, default 2; outputs EQ GT LT). Circuit defaults to the preset name. Verified in Logisim after building.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"preset": "<preset>"
},
"name": "build_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| bits | No | ||
| path | Yes | ||
| enable | No | ||
| preset | Yes | ||
| verify | No | ||
| circuit | No | ||
| select_bits | No |