From c815e3a9673522a01c1192fb543a9fd186a32737 Mon Sep 17 00:00:00 2001 From: Samuel Riedel Date: Thu, 14 Mar 2024 14:14:28 +0100 Subject: [PATCH] Waive Verilator linter for lints not matching our code style --- CHANGELOG.md | 4 ++++ src/deprecated/pulp_clk_cells.sv | 4 ++-- src/deprecated/pulp_clock_gating_async.sv | 2 +- src/rtl/tc_clk.sv | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f13f257..b389724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## Unreleased +### Changed +- Waive Verilator linter for lints not matching our code style + ## 0.2.13 - 2023-09-19 ### Fixed - `tc_sram_xilinx`: Fix be assignment diff --git a/src/deprecated/pulp_clk_cells.sv b/src/deprecated/pulp_clk_cells.sv index 53ad07f..4f47d47 100644 --- a/src/deprecated/pulp_clk_cells.sv +++ b/src/deprecated/pulp_clk_cells.sv @@ -98,9 +98,9 @@ module pulp_clock_delay( input logic in_i, output logic out_o ); - + /* verilator lint_off ASSIGNDLY */ assign #(300ps) out_o = in_i; - + /* verilator lint_on ASSIGNDLY */ endmodule `endif diff --git a/src/deprecated/pulp_clock_gating_async.sv b/src/deprecated/pulp_clock_gating_async.sv index 5c95b55..88e9707 100644 --- a/src/deprecated/pulp_clock_gating_async.sv +++ b/src/deprecated/pulp_clock_gating_async.sv @@ -41,4 +41,4 @@ module pulp_clock_gating_async #( .clk_o ); -endmodule \ No newline at end of file +endmodule diff --git a/src/rtl/tc_clk.sv b/src/rtl/tc_clk.sv index 3ab329e..491c719 100644 --- a/src/rtl/tc_clk.sv +++ b/src/rtl/tc_clk.sv @@ -43,10 +43,11 @@ module tc_clk_gating #( ); logic clk_en; - + /* verilator lint_off COMBDLY */ always_latch begin if (clk_i == 1'b0) clk_en <= en_i | test_en_i; end + /* verilator lint_on COMBDLY */ assign clk_o = clk_i & clk_en;