phy/pcs_1000basex: Cleanup sgmii timer reload.
This commit is contained in:
parent
78b8f9ee85
commit
41c8b50ba5
|
@ -49,13 +49,11 @@ class PCSTX(LiteXModule):
|
||||||
timer_en = Signal()
|
timer_en = Signal()
|
||||||
self.sync += [
|
self.sync += [
|
||||||
If(~timer_en | (timer == 0),
|
If(~timer_en | (timer == 0),
|
||||||
If(self.sgmii_speed == 0b00,
|
Case(self.sgmii_speed, {
|
||||||
timer.eq(99)
|
0b00: timer.eq(99),
|
||||||
).Elif(self.sgmii_speed == 0b01,
|
0b01: timer.eq( 9),
|
||||||
timer.eq(9)
|
0b10: timer.eq( 0),
|
||||||
).Elif(self.sgmii_speed == 0b10,
|
})
|
||||||
timer.eq(0)
|
|
||||||
)
|
|
||||||
).Elif(timer_en,
|
).Elif(timer_en,
|
||||||
timer.eq(timer - 1)
|
timer.eq(timer - 1)
|
||||||
)
|
)
|
||||||
|
@ -185,13 +183,11 @@ class PCSRX(LiteXModule):
|
||||||
timer_en = Signal()
|
timer_en = Signal()
|
||||||
self.sync += [
|
self.sync += [
|
||||||
If(~timer_en | (timer == 0),
|
If(~timer_en | (timer == 0),
|
||||||
If(self.sgmii_speed == 0b00,
|
Case(self.sgmii_speed, {
|
||||||
timer.eq(99)
|
0b00: timer.eq(99),
|
||||||
).Elif(self.sgmii_speed == 0b01,
|
0b01: timer.eq( 9),
|
||||||
timer.eq(9)
|
0b10: timer.eq( 0),
|
||||||
).Elif(self.sgmii_speed == 0b10,
|
})
|
||||||
timer.eq(0)
|
|
||||||
)
|
|
||||||
).Elif(timer_en,
|
).Elif(timer_en,
|
||||||
timer.eq(timer - 1)
|
timer.eq(timer - 1)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue