From a06edb43bb3eec536e163ad6c2d2fc3bde02bfb2 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sat, 1 Aug 2026 14:26:55 -0700 Subject: [PATCH] eth: Fix IFG and DIC handling in BASE-R model Signed-off-by: Alex Forencich --- src/eth/tb/baser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eth/tb/baser.py b/src/eth/tb/baser.py index 59a2a90..c4b4793 100644 --- a/src/eth/tb/baser.py +++ b/src/eth/tb/baser.py @@ -304,9 +304,9 @@ class BaseRSerdesSource(): cl = [] for k in range(8): - if k % 4 != 0 or rep_cnt != 0 or (self.force_offset_start and k == 0): + if k % 4 != 0 or rep_cnt != 0 or (self.force_offset_start and k == 0) or in_term: pass - elif ifg_cnt + deficit_idle_cnt > 4-1 or (not self.enable_dic and ifg_cnt > 4) or in_term: + elif ifg_cnt + deficit_idle_cnt > 4-1 or (not self.enable_dic and ifg_cnt > 0): # in IFG ifg_cnt = ifg_cnt - 4 if ifg_cnt < 0: