OR-1 dataflow CPU sketch

fix: address Phase 6 code review feedback in test_pe_lanes.py

Orual f77e1cd6 c19aacd9

+4 -4
+4 -4
tests/test_pe_lanes.py
··· 15 15 - AC8.3: FREE on shared frame preserves other lanes' data 16 16 - AC8.4: ALLOC_REMOTE emits ALLOC_SHARED when fref+2 is non-zero 17 17 - AC8.5: ALLOC_REMOTE emits ALLOC when fref+2 is zero (backwards compatible) 18 + - AC8.6: Full loop pipelining scenario — two iterations concurrent on different lanes 18 19 """ 19 20 20 21 import pytest ··· 1052 1053 assert out_tok_1.target == 1, "Output should route to target_pe=1" 1053 1054 1054 1055 # Interleaved verification: confirm independent lanes 1055 - all_matched = [e for e in matched if isinstance(e, Matched)] 1056 1056 matches_by_id = {} 1057 - for m in all_matched: 1057 + for m in matched: 1058 1058 if m.act_id not in matches_by_id: 1059 1059 matches_by_id[m.act_id] = [] 1060 1060 matches_by_id[m.act_id].append(m) ··· 1114 1114 assert matches_by_id[1][-1].left + matches_by_id[1][-1].right == 3000, \ 1115 1115 "Iteration 2 arithmetic correct" 1116 1116 1117 - # Both iterations ran on SAME frame 1118 - assert pe.tag_store.__class__.__name__ == 'dict' or True, "tag_store structure OK" 1117 + # Both iterations ran on SAME frame (verified at allocation, re-confirmed) 1118 + assert frame_id_1 == frame_id, "Both iterations ran on same frame" 1119 1119 1120 1120 # Both iterations used DIFFERENT lanes 1121 1121 assert lane_0 != lane_1, "Iterations used different lanes"