From 5f85b390ef3b296797427077c61e4bd75096a53e Mon Sep 17 00:00:00 2001 From: pengkun0129 Date: Wed, 10 Jun 2026 08:03:53 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=E3=80=8C/=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WORK_LOG.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/WORK_LOG.md b/WORK_LOG.md index 10b52bd..ba0e1d0 100644 --- a/WORK_LOG.md +++ b/WORK_LOG.md @@ -137,7 +137,7 @@ mxpic_router/mxpic_router/builder.py mxpic_router/tests/test_eda_router_contract.py -## 2026-06-10 +## 2026-06-09 ### Scope @@ -173,3 +173,37 @@ The current resistor test YAML was found to export `xsection: strip` and `family mxpic_router/mxpic_router/builder.py mxpic_router/tests/test_eda_router_contract.py + + +## 2026-06-10 + +### Scope + +Backend routing condition alignment and automatic route direction normalization in `mxpic_router`. + +### Summary + +Recent work focused on aligning backend routing behavior with updated frontend metadata and reducing direction-related crossing issues in bundled automatic routes. + +### Completed Work + +#### 1. PCB Routing Condition Update + +The PCB routing condition was updated to use the YAML link `family` field instead of route `xsection`. + +Routes with `family: electrical` now enable `PCB=True`, regardless of the specific metal layer or xsection name. Optical routes remain unchanged. + +#### 2. Automatic Route Direction Normalization + +Automatic bundled routes are now normalized to route from the lower-x endpoint to the higher-x endpoint. + +This keeps route direction consistent inside the same bundle and reduces crossing risks caused by mixed left-to-right and right-to-left link definitions. + +#### 3. Test Coverage Update + +Contract tests were added to verify electrical-family PCB routing and left-to-right automatic route ordering. + +### Modified Files + +mxpic_router/mxpic_router/builder.py +mxpic_router/tests/test_eda_router_contract.py