1
0
mirror of https://github.com/olofk/serv.git synced 2026-04-03 11:52:43 +00:00

Suppressing some verilator lint warnings

This commit is contained in:
Fabien Marteau
2019-10-22 09:55:31 +02:00
committed by Olof Kindgren
parent e5061ca5f8
commit b9a9e99e2b
2 changed files with 4 additions and 0 deletions

View File

@@ -105,10 +105,12 @@ serv_arbiter serv_arbiter
//synthesis translate_off
reg [1023:0] firmware_file;
initial
/* verilator lint_off WIDTH */
if ($value$plusargs("firmware=%s", firmware_file)) begin
$display("Loading RAM from %0s", firmware_file);
$readmemh(firmware_file, ram.mem);
end
/* verilator lint_on WIDTH */
//synthesis translate_on
`endif

View File

@@ -66,10 +66,12 @@ module serv_mux
integer f = 0;
initial
/* verilator lint_off WIDTH */
if ($value$plusargs("signature=%s", signature_file)) begin
$display("Writing signature to %0s", signature_file);
f = $fopen(signature_file, "w");
end
/* verilator lint_on WIDTH */
always @(posedge i_clk)
if (sig_en & (f != 0))