From e53a522662426378bc10f3f41035f755a007b5c9 Mon Sep 17 00:00:00 2001 From: Julien Margetts Date: Tue, 4 Aug 2020 17:07:40 -0400 Subject: [PATCH] Fix protect lib VCS warning (#2479) --- src/V3ProtectLib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3ProtectLib.cpp b/src/V3ProtectLib.cpp index 740381e71..5d6c2fe28 100644 --- a/src/V3ProtectLib.cpp +++ b/src/V3ProtectLib.cpp @@ -202,7 +202,7 @@ private: // CPP hash value addComment(txtp, fl, "Hash value to make sure this file and the corresponding"); addComment(txtp, fl, "library agree"); - m_hashValuep = new AstTextBlock(fl, "localparam int protectlib_hash__V = "); + m_hashValuep = new AstTextBlock(fl, "localparam int protectlib_hash__V = 32'd"); txtp->addNodep(m_hashValuep); txtp->addText(fl, "\n"); @@ -414,7 +414,7 @@ private: m_seqPortsp->addNodep(varp->cloneTree(false)); if (m_hasClk) { m_seqParamsp->addText(fl, varp->name() + "\n"); - m_clkSensp->addText(fl, "edge(" + varp->name() + ")"); + m_clkSensp->addText(fl, "posedge " + varp->name() + " or negedge " + varp->name()); } m_cSeqParamsp->addText(fl, varp->dpiArgType(true, false) + "\n"); m_cSeqClksp->addText(fl, cInputConnection(varp));