Skip to content

fix: the selection trace reads the diagram left to right - #114

Merged
endrix merged 1 commit into
mainfrom
fix/trace-reads-left-to-right
Nov 6, 2026
Merged

endrix merged 1 commit into
mainfrom
fix/trace-reads-left-to-right

Conversation

@endrix

@endrix endrix commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Selecting a node in a SystemVerilog netlist lit only its two neighbours (reported on netlist__Netlist__0.v, inside Core_wrapper / core_wrapped / instance52). Every handshake ready wire runs against the data it answers, so by the arrows alone every two connected nodes form a cycle, and on a cycle the trace was cut to the direct neighbours.

The walk now follows each wire the way the diagram is read, left to right: a wire drawn back to the left (a ready, a loop's feedback) is walked against its arrow. A laid-out diagram is then a DAG, and the trace follows the data as far as it goes: upstream to the left, downstream to the right. A port reached that way is walked on from too. A model without positions, and a cycle that remains, behave as before.

Checked headlessly on the netlist's mul_mul_Bbehavioral module (107 nodes, 218 edges): selecting addi73 now traces the path back to the module inputs, 141 elements upstream, where it traced four. Two new unit tests pin the handshake chain and a loop drawn left to right.

https://claude.ai/code/session_01EToj6RJRMSSHQiqGNMU9wv

…ake's ready wires do not cut it short

Selecting a node in a netlist lit only its two neighbours: every `ready`
wire runs against the data it answers, so by the arrows alone every two
connected nodes form a cycle, and on a cycle the trace was cut to the
direct neighbours. Now the walk follows each wire the way the diagram is
read: a wire drawn back to the left (a ready, a loop's feedback) is walked
against its arrow, so a laid-out diagram is a DAG and the trace follows the
data as far as it goes, upstream to the left and downstream to the right.
A port reached that way is walked on from too, since it has wires of its
own. A model with no positions, and a cycle that remains, behave as before.

On the mul_mul module of a 1597-module netlist, selecting addi73 traces 141
elements upstream where it traced four.

Claude-Session: https://claude.ai/code/session_01EToj6RJRMSSHQiqGNMU9wv
@endrix
endrix merged commit aefb60c into main Nov 6, 2026
1 check passed
@endrix
endrix deleted the fix/trace-reads-left-to-right branch November 6, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant