mirror of
https://github.com/enjoy-digital/liteeth.git
synced 2025-01-03 03:43:37 -05:00
liteeth/gen: Fix phy_tx/rx_delay format (floats).
This commit is contained in:
parent
8ad6e2521c
commit
c035ee2b63
1 changed files with 3 additions and 1 deletions
|
@ -363,8 +363,10 @@ def main():
|
|||
core_config[k] = replaces[r]
|
||||
if k == "phy":
|
||||
core_config[k] = getattr(liteeth_phys, core_config[k])
|
||||
if k in ["clk_freq", "phy_tx_delay", "phy_rx_delay"]:
|
||||
if k in ["clk_freq"]:
|
||||
core_config[k] = int(float(core_config[k]))
|
||||
if k in ["phy_tx_delay", "phy_rx_delay"]:
|
||||
core_config[k] = float(core_config[k])
|
||||
|
||||
# Generate core --------------------------------------------------------------------------------
|
||||
if "device" not in core_config:
|
||||
|
|
Loading…
Reference in a new issue