From 167e061a1caadd393da1cb0c7e03b6ad00fbe5c5 Mon Sep 17 00:00:00 2001 From: David Harris Date: Sat, 6 Jan 2024 08:19:46 -0800 Subject: [PATCH] Fixed truncated begin_signature in testbench --- testbench/testbench.sv | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testbench/testbench.sv b/testbench/testbench.sv index 7b5877e9c..5b5e905ea 100644 --- a/testbench/testbench.sv +++ b/testbench/testbench.sv @@ -588,7 +588,6 @@ task automatic updateProgramAddrLabelArray; ProgramAddrMapFP = $fopen(ProgramAddrMapFile, "r"); if (ProgramLabelMapFP & ProgramAddrMapFP) begin // check we found both files - // *** RT: I'm a bit confused by the required initialization here. ProgramAddrLabelArray["begin_signature"] = 0; ProgramAddrLabelArray["tohost"] = 0; ProgramAddrLabelArray["sig_end_canary"] = 0; @@ -601,7 +600,7 @@ task automatic updateProgramAddrLabelArray; end end - if(ProgramAddrLabelArray["begin"] == 0) $display("Couldn't find begin_signature in %s", ProgramLabelMapFile); + if(ProgramAddrLabelArray["begin_signature"] == 0) $display("Couldn't find begin_signature in %s", ProgramLabelMapFile); if(ProgramAddrLabelArray["sig_end_canary"] == 0) $display("Couldn't find sig_end_canary in %s", ProgramLabelMapFile); $fclose(ProgramLabelMapFP);