From 2c67d13456d18d043c03c84a1ac13dadcea74b40 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 18 Mar 2024 13:43:11 +0100 Subject: [PATCH] examples: Improve identation/presentation. --- examples/axi-lite-mii.yml | 16 +++++----- examples/udp_a7_gtp_sgmii.yml | 8 ++--- examples/udp_raw_ecp5rgmii.yml | 53 +++++++++++++++++++--------------- examples/udp_s7phyrgmii.yml | 22 +++++++------- examples/udp_usp_gth_sgmii.yml | 8 ++--- examples/wishbone_mii.yml | 18 +++++++----- 6 files changed, 67 insertions(+), 58 deletions(-) diff --git a/examples/axi-lite-mii.yml b/examples/axi-lite-mii.yml index 9f9541d..9435d00 100644 --- a/examples/axi-lite-mii.yml +++ b/examples/axi-lite-mii.yml @@ -6,14 +6,16 @@ # SPDX-License-Identifier: BSD-2-Clause # PHY ---------------------------------------------------------------------- -phy: LiteEthPHYMII -vendor: xilinx -toolchain: vivado -# Core --------------------------------------------------------------------- -clk_freq: 100e6 -core: axi-lite -endianness: big +phy : LiteEthPHYMII +vendor : xilinx +toolchain : vivado +# Core --------------------------------------------------------------------- +clk_freq : 100e6 +core : axi-lite +endianness : big + +# SoC --------------------------------------------------------------------- soc: mem_map: ethmac: 0x50000000 diff --git a/examples/udp_a7_gtp_sgmii.yml b/examples/udp_a7_gtp_sgmii.yml index 5edc4b5..16b4fe6 100644 --- a/examples/udp_a7_gtp_sgmii.yml +++ b/examples/udp_a7_gtp_sgmii.yml @@ -4,14 +4,14 @@ # Copyright (c) 2020-2024 Florent Kermarrec # SPDX-License-Identifier: BSD-2-Clause -# PHY ---------------------------------------------------------------------- +# PHY -------------------------------------------------------------------------- phy : A7_1000BASEX phy_tx_polarity : 0 phy_rx_polarity : 0 vendor : xilinx toolchain : vivado -# Core --------------------------------------------------------------------- +# Core ------------------------------------------------------------------------- refclk_freq : 156.25e6 clk_freq : 25e6 core : udp @@ -19,8 +19,8 @@ data_width : 32 dhcp : True # UDP Ports -------------------------------------------------------------------- -udp_ports: { - "udp0": { +udp_ports : { + "udp0" : { "data_width" : 32, "tx_fifo_depth" : 1024, "rx_fifo_depth" : 1024, diff --git a/examples/udp_raw_ecp5rgmii.yml b/examples/udp_raw_ecp5rgmii.yml index 81c81a0..2c8ba6c 100644 --- a/examples/udp_raw_ecp5rgmii.yml +++ b/examples/udp_raw_ecp5rgmii.yml @@ -1,24 +1,29 @@ ---- # PHY ---------------------------------------------------------------------- +# +# This file is part of LiteEth. +# # Copyright (c) 2023 LumiGuide Fietsdetectie B.V. -# License: BSD +# SPDX-License-Identifier: BSD-2-Clause + +# PHY -------------------------------------------------------------------------- +phy : LiteEthECP5PHYRGMII +phy_tx_delay : 0e-9 +phy_rx_delay : 2e-9 +device : LFE5U-25F-6BG256C +vendor : lattice +toolchain : trellis -phy: LiteEthECP5PHYRGMII -phy_tx_delay: 0e-9 -phy_rx_delay: 2e-9 -device: LFE5U-25F-6BG256C -vendor: lattice -toolchain: trellis # Core ------------------------------------------------------------------------- -clk_freq: 125e6 -core: udp +clk_freq : 125e6 +core : udp -mac_address: 0x10e2d5000000 -ip_address: 172.30.0.1 +mac_address : 0x10e2d5000000 +ip_address : 172.30.0.1 + +tx_cdc_depth : 16 +tx_cdc_buffered : True +rx_cdc_depth : 16 +rx_cdc_buffered : True -tx_cdc_depth: 16 -tx_cdc_buffered: True -rx_cdc_depth: 16 -rx_cdc_buffered: True # UDP Ports -------------------------------------------------------------------- # mode `raw` vs `streamer` mode: # The streamer mode is a convenience wrapper around a `raw` UDP port. A raw UDP @@ -32,13 +37,13 @@ rx_cdc_buffered: True # control of transmitted UDP packet sizes. udp_ports: raw: - data_width: 32 - mode: raw + data_width : 32 + mode : raw streamer1: - data_width: 32 - port: 1337 - mode: streamer + data_width : 32 + port : 1337 + mode : streamer streamer2: - data_width: 32 - port: 6077 - mode: streamer + data_width : 32 + port : 6077 + mode : streamer diff --git a/examples/udp_s7phyrgmii.yml b/examples/udp_s7phyrgmii.yml index 3568eba..cb9b0e2 100644 --- a/examples/udp_s7phyrgmii.yml +++ b/examples/udp_s7phyrgmii.yml @@ -5,27 +5,27 @@ # SPDX-License-Identifier: BSD-2-Clause # PHY -------------------------------------------------------------------------- -phy: LiteEthS7PHYRGMII -vendor: xilinx -toolchain: vivado +phy : LiteEthS7PHYRGMII +vendor : xilinx +toolchain : vivado # Core ------------------------------------------------------------------------- -clk_freq: 125e6 -core: udp -mac_address: 0x10e2d5000000 -ip_address: 192.168.1.50 -data_width: 8 +clk_freq : 125e6 +core : udp +mac_address : 0x10e2d5000000 +ip_address : 192.168.1.50 +data_width : 8 # UDP Ports -------------------------------------------------------------------- -udp_ports: { - "udp0": { +udp_ports : { + "udp0" : { "udp_port" : 2000, # Static Params. "ip_address" : "192.168.1.100", # Static Params. "data_width" : 32, "tx_fifo_depth" : 64, "rx_fifo_depth" : 64, }, - "udp1": { + "udp1" : { #"udp_port" : , # Dynamic Params. #"ip_address" : , # Dynamic Params. "data_width" : 32, diff --git a/examples/udp_usp_gth_sgmii.yml b/examples/udp_usp_gth_sgmii.yml index 8c02281..65dbbee 100644 --- a/examples/udp_usp_gth_sgmii.yml +++ b/examples/udp_usp_gth_sgmii.yml @@ -4,12 +4,12 @@ # Copyright (c) 2020-2023 Florent Kermarrec # SPDX-License-Identifier: BSD-2-Clause -# PHY ---------------------------------------------------------------------- +# PHY -------------------------------------------------------------------------- phy : USP_GTH_1000BASEX vendor : xilinx toolchain : vivado -# Core --------------------------------------------------------------------- +# Core ------------------------------------------------------------------------- refclk_freq : 156.25e6 clk_freq : 25e6 core : udp @@ -17,8 +17,8 @@ data_width : 32 dhcp : True # UDP Ports -------------------------------------------------------------------- -udp_ports: { - "udp0": { +udp_ports : { + "udp0" : { "data_width" : 32, "tx_fifo_depth" : 1024, "rx_fifo_depth" : 1024, diff --git a/examples/wishbone_mii.yml b/examples/wishbone_mii.yml index 02ebc92..416271f 100644 --- a/examples/wishbone_mii.yml +++ b/examples/wishbone_mii.yml @@ -4,15 +4,17 @@ # Copyright (c) 2020 Florent Kermarrec # SPDX-License-Identifier: BSD-2-Clause -# PHY ---------------------------------------------------------------------- -phy: LiteEthPHYMII -vendor: xilinx -toolchain: vivado -# Core --------------------------------------------------------------------- -clk_freq: 100e6 -core: wishbone -endianness: big +# PHY -------------------------------------------------------------------------- +phy : LiteEthPHYMII +vendor : xilinx +toolchain : vivado +# Core ------------------------------------------------------------------------- +clk_freq : 100e6 +core : wishbone +endianness : big + +# SoC -------------------------------------------------------------------------- soc: mem_map: ethmac: 0x50000000