From 93e91e3eb045af820648068f6cb6358ea261c50c Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Sat, 6 Aug 2022 15:21:15 -0400 Subject: [PATCH] pcs: Fix some lint There were two unused variables; remove them. The wrong type of assignments were used; fix them. Fixes: d351291 ("Initial commit") Signed-off-by: Sean Anderson --- rtl/pcs.v | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rtl/pcs.v b/rtl/pcs.v index 1edfe05..edef284 100644 --- a/rtl/pcs.v +++ b/rtl/pcs.v @@ -450,8 +450,6 @@ module pcs_rx ( reg ce_next, valid_next, err_next; reg [2:0] state, state_next; initial state = IDLE; - /* Receive shift buffer */ - reg [9:0] buffer, buffer_next; /* Whether we are aligned and receiving */ reg rx_next; @@ -645,7 +643,7 @@ module top ( reg [11:0] in; always @(posedge clk) - in = { in[10:0], in_next }; + in <= { in[10:0], in_next }; wire tx_ce; wire tx_en; @@ -668,7 +666,7 @@ module top ( reg [9:0] out_next; always @(posedge clk) - out_next = { rx_ce, rx_dv, rxd, rx_er, pma_data_tx, crs, col }; + out_next <= { rx_ce, rx_dv, rxd, rx_er, pma_data_tx, crs, col }; assign out = ^out_next;