Remove block names
Signed-off-by: Bartłomiej Chmiel <bchmiel@antmicro.com>
This commit is contained in:
parent
82fbb446ed
commit
f6228d00d8
|
|
@ -39,7 +39,6 @@
|
||||||
#include "V3AssertProp.h"
|
#include "V3AssertProp.h"
|
||||||
|
|
||||||
#include "V3Graph.h"
|
#include "V3Graph.h"
|
||||||
#include "V3UniqueNames.h"
|
|
||||||
|
|
||||||
VL_DEFINE_DEBUG_FUNCTIONS;
|
VL_DEFINE_DEBUG_FUNCTIONS;
|
||||||
|
|
||||||
|
|
@ -189,7 +188,6 @@ public:
|
||||||
// Transform property graph into AST
|
// Transform property graph into AST
|
||||||
class AssertPropTransformer final {
|
class AssertPropTransformer final {
|
||||||
// STATE
|
// STATE
|
||||||
V3UniqueNames m_assertCycleDelayNames{"__Vassert"}; // Names for assertion properties
|
|
||||||
V3Graph& m_graph; // Property tree
|
V3Graph& m_graph; // Property tree
|
||||||
AstPExpr* m_pexprp = nullptr; // Currently built property sequence
|
AstPExpr* m_pexprp = nullptr; // Currently built property sequence
|
||||||
AstBegin* m_current = nullptr; // Currently built block
|
AstBegin* m_current = nullptr; // Currently built block
|
||||||
|
|
@ -211,16 +209,14 @@ class AssertPropTransformer final {
|
||||||
V3GraphVertex* processVtx(DfaExprVertex* vtxp) {
|
V3GraphVertex* processVtx(DfaExprVertex* vtxp) {
|
||||||
AstNode* const nodep = vtxp->nodep();
|
AstNode* const nodep = vtxp->nodep();
|
||||||
if (vtxp->isStart()) {
|
if (vtxp->isStart()) {
|
||||||
AstBegin* const bodyp = new AstBegin{
|
AstBegin* const bodyp = new AstBegin{nodep->fileline(), "", nullptr, true};
|
||||||
nodep->fileline(), m_assertCycleDelayNames.get(nodep) + "__block", nullptr, true};
|
|
||||||
m_pexprp = new AstPExpr{nodep->fileline(), bodyp, nodep->dtypep()};
|
m_pexprp = new AstPExpr{nodep->fileline(), bodyp, nodep->dtypep()};
|
||||||
UASSERT_OBJ(vtxp->outSize1(), nodep, "Starting node must have one out edge");
|
UASSERT_OBJ(vtxp->outSize1(), nodep, "Starting node must have one out edge");
|
||||||
m_current = m_pexprp->bodyp();
|
m_current = m_pexprp->bodyp();
|
||||||
return processEdge(vtxp->outEdges().frontp());
|
return processEdge(vtxp->outEdges().frontp());
|
||||||
}
|
}
|
||||||
UASSERT_OBJ(vtxp->outEdges().size() == 2, nodep, "Each expression must have two branches");
|
UASSERT_OBJ(vtxp->outEdges().size() == 2, nodep, "Each expression must have two branches");
|
||||||
AstBegin* const passsp = new AstBegin{
|
AstBegin* const passsp = new AstBegin{nodep->fileline(), "", nullptr, true};
|
||||||
nodep->fileline(), m_assertCycleDelayNames.get(nodep) + "__block_pass", nullptr, true};
|
|
||||||
AstNode* const failsp = vtxp->outEdges().backp()->top()->as<DfaStmtVertex>()->nodep();
|
AstNode* const failsp = vtxp->outEdges().backp()->top()->as<DfaStmtVertex>()->nodep();
|
||||||
|
|
||||||
AstSampled* const sampledp
|
AstSampled* const sampledp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue