From 4cc574048df9b8f73ff2cd1f6d4a43d53d7498d2 Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Mon, 29 Aug 2022 21:36:24 -0400 Subject: [PATCH] mdio_io: Use localparams for states These states are not user-modifyable, so make them local. Signed-off-by: Sean Anderson --- rtl/mii_io_rx.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtl/mii_io_rx.v b/rtl/mii_io_rx.v index c3d27e2..22a9143 100644 --- a/rtl/mii_io_rx.v +++ b/rtl/mii_io_rx.v @@ -26,9 +26,9 @@ module mii_io_rx ( reg rx_clk_p_next, rx_clk_n, rx_clk_n_next; reg [1:0] state = HIGH, state_next; - parameter LOW = 2; - parameter RISING = 1; - parameter HIGH = 0; + localparam LOW = 2; + localparam RISING = 1; + localparam HIGH = 0; always @(*) begin rx_clk_p_next = 0;