Allegro Automatic Connect
Automatically wire connections based on coordinates and netlist. This skill consists of two steps:
Search for pstxnet.dat in the current directory and all subdirectories (typically located in the allegro folder).
Execute the following command to parse the netlist and generate netlist.md in the root directory:
uv run {baseDir}/scripts/parse_netlist.py ${full_path_to_pstxnet.dat}
Note: Replace
${full_path_to_pstxnet.dat}with the actual path to thepstxnet.datfile, like./allegro/pstxnet.dat.
Ensure the following files exist in the current directory:
netlist.md: Contains parsed netlist information.place_txt.txt: Contains placement data (Pin 1 coordinates and rotation angle).Verify the spec/ directory contains markdown files for each component, detailing pin positions relative to the component.
For each connection in the netlist, generate a script block following this template and merge all blocks into connect.scr:
add connect
FORM mini acon_line_width ${width}
setwindow pcb
pick grid ${x1} ${y1}
pick grid ${x2} ${y2}
done
Note:
N0001), set ${width} to a value between 5 and 8.GND, VCC, 3V3), set ${width} to a value between 10 and 20.Example:
For a connection between coordinates (100, 200) and (300, 400):
add connect FORM mini acon_line_width 5 setwindow pcb pick grid 100 200 pick grid 300 400 done