mirror of
https://github.com/fpganinja/taxi.git
synced 2025-12-10 17:28: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:
|
while True:
|
||||||
await RisingEdge(self.clock)
|
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):
|
if ifg_cnt + deficit_idle_cnt > self.byte_lanes-1 or (not self.enable_dic and ifg_cnt > 4):
|
||||||
# in IFG
|
# in IFG
|
||||||
ifg_cnt = ifg_cnt - self.byte_lanes
|
ifg_cnt = ifg_cnt - self.byte_lanes
|
||||||
@@ -436,7 +439,10 @@ class BaseRSerdesSink:
|
|||||||
while True:
|
while True:
|
||||||
await RisingEdge(self.clock)
|
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
|
data = self.data.value.integer
|
||||||
hdr = self.hdr.value.integer
|
hdr = self.hdr.value.integer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user