feat: Allow port names to be placed outside of a block

This commit is contained in:
David Stadelmann committed 2026-09-14 11:42:37 +02:00
1 parent 6070ce7fe3
commit b8a8d38ed2
4 files changed
+7402 -7299

No files matched your search

+14
View File
@@ -305,6 +305,20 @@ wire.stub("g2-port-in", "west")
wire.stub("g2-port-out", "east")
```, vertical: true)
#let port-names-outside = example(```
element.block(
x: 0, y: 0, w: 2, h: 2, id: "block",
port-names-outside: true,
port-name-padding: 4pt,
ports: (
north: ((id: "clk", name: "CLK", clock: true),),
west: ((id: "in1", name: "A"),
(id: "in2", name: "B")),
east: ((id: "out", name: "Y"),)
)
)
```)
#let port-shape = example(```
// Block with pentagon-shaped ports.
// - port-shape / port-kind / port-size are element-level defaults.