1
0
forked from HEL/circuiteria

fixed multiplexers with named ports + minor changes

This commit is contained in:
2024-05-17 14:18:33 +02:00
parent 7e0209b712
commit 21b5d1cbfe
8 changed files with 10 additions and 9 deletions

View File

@ -33,7 +33,6 @@
stroke: black + 1pt,
id: "",
debug: (
grid: false,
ports: false
)
) = {
@ -45,6 +44,10 @@
let bits = util.lpad(str(i, base: 2), nbits)
ports.push((id: "in" + str(i), name: bits))
}
} else {
for (i, port) in entries.enumerate() {
ports.push((id: "in" + str(i), name: port))
}
}
element.elmt(