Skip to content

Commit

Permalink
liteeth/1000basex: register config reg in PCS when ack is asserted
Browse files Browse the repository at this point in the history
sbourdeauducq committed Nov 19, 2017
1 parent a427a83 commit be3c1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misoc/cores/liteeth_mini/phy/pcs_1000basex.py
Original file line number Diff line number Diff line change
@@ -47,6 +47,7 @@ def __init__(self, lsb_first=False):
fsm.act("START",
self.tx_ack.eq(1), # discard TX data if we are in config_reg phase
If(self.config_stb,
load_config_reg_buffer.eq(1),
self.encoder.k[0].eq(1),
self.encoder.d[0].eq(K(28, 5)),
NextState("CONFIG_D")
@@ -70,7 +71,6 @@ def __init__(self, lsb_first=False):
self.encoder.d[0].eq(D(21, 5))
),
NextValue(c_type, ~c_type),
load_config_reg_buffer.eq(1),
NextState("CONFIG_REG_LSB")
),
fsm.act("CONFIG_REG_LSB",

0 comments on commit be3c1a9

Please sign in to comment.