5
14
Fork
You've already forked prjunnamed
1

netlist: represent const nets by three fixed-position Const cells. #114

Merged
wanda-phi merged 1 commit from const-cell into main 2026年04月30日 21:08:55 +02:00

The Const cells are special: there are always exactly three of them,
at indices 0, 1, and 2, corresponding to the values of 0, 1, X.
They are created along with the design and are considered immutable.

This change means that now all nets are output of cells, and a bunch
of Result<..., Trit> wrappers and associated special cases can be
removed.

Since the cells are at fixed positions, Net::ZERO etc remain
as constants that can be used as inputs or compared against.

The const cells are invisible in text representation: they are not
printed out, and any references to them use the preexisting special
const syntax. This means the text representation remains unchanged.

The `Const` cells are special: there are always exactly three of them, at indices 0, 1, and 2, corresponding to the values of 0, 1, X. They are created along with the design and are considered immutable. This change means that now *all* nets are output of cells, and a bunch of `Result<..., Trit>` wrappers and associated special cases can be removed. Since the cells are at fixed positions, `Net::ZERO` etc remain as constants that can be used as inputs or compared against. The const cells are invisible in text representation: they are not printed out, and any references to them use the preexisting special const syntax. This means the text representation remains unchanged.
wanda-phi force-pushed const-cell from 2317e8a914
All checks were successful
CI / cargo-deny (pull_request) Successful in 37s
CI / cargo-deny (push) Successful in 37s
CI / document (push) Successful in 53s
CI / document (pull_request) Successful in 53s
CI / publish (pull_request) Has been skipped
CI / publish (push) Has been skipped
CI / test (pull_request) Successful in 1m9s
CI / test (push) Successful in 1m14s
to cf433d97e9
All checks were successful
CI / cargo-deny (pull_request) Successful in 36s
CI / document (pull_request) Successful in 52s
CI / publish (pull_request) Has been skipped
CI / test (pull_request) Successful in 1m12s
CI / cargo-deny (push) Successful in 31s
CI / document (push) Successful in 43s
CI / test (push) Successful in 1m4s
CI / publish (push) Successful in 18s
2026年04月30日 20:56:11 +02:00
Compare
wanda-phi deleted branch const-cell 2026年04月30日 21:08:59 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prjunnamed/prjunnamed!114
Reference in a new issue
prjunnamed/prjunnamed
No description provided.
Delete branch "const-cell"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?