mirror of
https://github.com/enjoy-digital/liteeth.git
synced 2025-01-03 03:43:37 -05:00
Merge pull request #100 from fjullien/fix_trionrgmii
phy: trionrgmii: add 'properties' to GPIO
This commit is contained in:
commit
c3e3dee0e9
1 changed files with 22 additions and 16 deletions
|
@ -29,6 +29,7 @@ class LiteEthPHYRGMIITX(Module):
|
|||
for n in range(4):
|
||||
name = platform.get_pin_name(pads.tx_data[n])
|
||||
pad = platform.get_pin_location(pads.tx_data[n])
|
||||
io_prop = platform.get_pin_properties(pads.tx_data[n])
|
||||
name = f"auto_{name}"
|
||||
|
||||
tx_data_h.append(platform.add_iface_io(name + "_HI"))
|
||||
|
@ -39,6 +40,7 @@ class LiteEthPHYRGMIITX(Module):
|
|||
"mode" : "OUTPUT",
|
||||
"name" : name,
|
||||
"location" : pad,
|
||||
"properties" : io_prop,
|
||||
"size" : 1,
|
||||
"out_reg" : "DDIO_RESYNC",
|
||||
"out_clk_pin" : "auto_eth_tx_clk",
|
||||
|
@ -73,6 +75,7 @@ class LiteEthPHYRGMIIRX(Module):
|
|||
for n in range(4):
|
||||
name = platform.get_pin_name(pads.rx_data[n])
|
||||
pad = platform.get_pin_location(pads.rx_data[n])
|
||||
io_prop = platform.get_pin_properties(pads.rx_data[n])
|
||||
name = f"auto_{name}"
|
||||
|
||||
rx_data_h.append(platform.add_iface_io(name + "_HI"))
|
||||
|
@ -83,6 +86,7 @@ class LiteEthPHYRGMIIRX(Module):
|
|||
"mode" : "INPUT",
|
||||
"name" : name,
|
||||
"location" : pad,
|
||||
"properties" : io_prop,
|
||||
"size" : 1,
|
||||
"in_reg" : "DDIO_RESYNC",
|
||||
"in_clk_pin" : "auto_eth_rx_clk",
|
||||
|
@ -127,6 +131,7 @@ class LiteEthPHYRGMIICRG(Module, AutoCSR):
|
|||
"type" : "GPIO",
|
||||
"size" : 1,
|
||||
"location" : platform.get_pin_location(clock_pads.rx)[0],
|
||||
"properties" : platform.get_pin_properties(clock_pads.rx),
|
||||
"name" : platform.get_pin_name(eth_rx_clk),
|
||||
"mode" : "INPUT_CLK"
|
||||
}
|
||||
|
@ -142,6 +147,7 @@ class LiteEthPHYRGMIICRG(Module, AutoCSR):
|
|||
"type" : "GPIO",
|
||||
"size" : 1,
|
||||
"location" : platform.get_pin_location(clock_pads.tx)[0],
|
||||
"properties" : platform.get_pin_properties(clock_pads.tx),
|
||||
"name" : "auto_eth_tx_clk_delayed",
|
||||
"mode" : "OUTPUT_CLK"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue