From afb545cd021961aee6f4d66259116d194454465e Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 22 Jan 2022 20:50:18 +0100 Subject: [PATCH] Clean up code formatting --- trashernet/cdc_strobe.vhd | 5 ++--- trashernet/trashernet_phy.vhd | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/trashernet/cdc_strobe.vhd b/trashernet/cdc_strobe.vhd index fe3a47e..b1aca53 100644 --- a/trashernet/cdc_strobe.vhd +++ b/trashernet/cdc_strobe.vhd @@ -54,8 +54,7 @@ begin ); -- strobify - b_toggle_last <= '0' when b_rst - else b_toggle when rising_edge(b_clk) - ; + b_toggle_last <= '0' when b_rst else + b_toggle when rising_edge(b_clk); b_out <= (b_toggle ?/= b_toggle_last); end architecture rtl; diff --git a/trashernet/trashernet_phy.vhd b/trashernet/trashernet_phy.vhd index 524c4ab..43c710d 100644 --- a/trashernet/trashernet_phy.vhd +++ b/trashernet/trashernet_phy.vhd @@ -56,7 +56,7 @@ begin signal bit_cnt : integer range 0 to 7; -- NLP supervision - constant NLP_TIMEOUT_CNT_MAX : integer := integer(round(real(F_CLK) * 16.0 * 10.0**(-3))); -- Every 16 ms + constant NLP_TIMEOUT_CNT_MAX : integer := integer(round(real(F_CLK) * 16.0 * 10.0 ** (-3))); -- Every 16 ms signal nlp_timeout_cnt : integer range 0 to NLP_TIMEOUT_CNT_MAX; begin -- Synchronize RX input