emsec / hal

HAL – The Hardware Analyzer
MIT License
624 stars 76 forks source link

convert the netlist into a adjacency List or adjacency Matrix #555

Closed ghyghy123 closed 7 months ago

ghyghy123 commented 8 months ago

Hello, in HAL, the netlist is regarded as a graph, the gate is regarded as a node, and the net is regarded as an edge. Is there any way to convert the netlist into a adjacency List or adjacency Matrix?Use the functions or plugins provided by the tool.

RenWal commented 7 months ago

Sure, you can do that in Python using any graph library you like (or even build that functionality yourself). I think the igraph Python module has built-in functions for generating adjacency lists and matrices. There is no specific HAL feature for this.