mirror of
https://github.com/fpganinja/taxi.git
synced 2025-12-09 00:48:40 -08:00
eth: Reorganize clock enable in BASE-R model
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -137,7 +137,10 @@ class BaseRSerdesSource():
|
||||
while True:
|
||||
await RisingEdge(self.clock)
|
||||
|
||||
if self.enable is None or self.enable.value:
|
||||
# clock enable
|
||||
if self.enable is not None and not self.enable.value:
|
||||
continue
|
||||
|
||||
if ifg_cnt + deficit_idle_cnt > self.byte_lanes-1 or (not self.enable_dic and ifg_cnt > 4):
|
||||
# in IFG
|
||||
ifg_cnt = ifg_cnt - self.byte_lanes
|
||||
@@ -436,7 +439,10 @@ class BaseRSerdesSink:
|
||||
while True:
|
||||
await RisingEdge(self.clock)
|
||||
|
||||
if self.enable is None or self.enable.value:
|
||||
# clock enable
|
||||
if self.enable is not None and not self.enable.value:
|
||||
continue
|
||||
|
||||
data = self.data.value.integer
|
||||
hdr = self.hdr.value.integer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user