[all] Minor lint fixes
- wire up spi_host q/d correctly
- remove constant casting and let ascentlint deal with any large values
Signed-off-by: Timothy Chen <timothytim@google.com>
diff --git a/hw/ip/kmac/rtl/kmac_app.sv b/hw/ip/kmac/rtl/kmac_app.sv
index 301a0f5..9142490 100644
--- a/hw/ip/kmac/rtl/kmac_app.sv
+++ b/hw/ip/kmac/rtl/kmac_app.sv
@@ -230,7 +230,7 @@
// clear digest right after done to not leak info to other interface
always_comb begin
for (int unsigned i = 0 ; i < NumAppIntf ; i++) begin
- if (AppIdxW'(i) == app_id) begin
+ if (i == app_id) begin
app_o[i] = '{
ready: app_data_ready,
done: app_digest_done,
@@ -574,7 +574,7 @@
StAppMsg: begin
// Check app intf cfg
for (int unsigned i = 0 ; i < NumAppIntf ; i++) begin
- if (app_id == AppIdxW'(i)) begin
+ if (app_id == i) begin
if (AppCfg[i].PrefixMode == 1'b 0) begin
sha3_prefix_o = reg_prefix_i;
end else begin
diff --git a/hw/ip/spi_host/rtl/spi_host.sv b/hw/ip/spi_host/rtl/spi_host.sv
index 1358deb..3a1ce1c 100644
--- a/hw/ip/spi_host/rtl/spi_host.sv
+++ b/hw/ip/spi_host/rtl/spi_host.sv
@@ -507,12 +507,12 @@
tx_empty_q <= 1'b0;
rx_full_q <= 1'b0;
end else begin
- idle_q <= idle_q;
- ready_q <= ready_q;
- tx_wm_q <= tx_wm_q;
- rx_wm_q <= rx_wm_q;
- tx_empty_q <= tx_empty_q;
- rx_full_q <= rx_full_q;
+ idle_q <= idle_d;
+ ready_q <= ready_d;
+ tx_wm_q <= tx_wm_d;
+ rx_wm_q <= rx_wm_d;
+ tx_empty_q <= tx_empty_d;
+ rx_full_q <= rx_full_d;
end
end