Internals: Fix spacing of function calls. No functional change.
This commit is contained in:
parent
ec538c02d8
commit
75f28fd446
|
@ -149,9 +149,7 @@ private:
|
|||
}
|
||||
|
||||
AstNode* newp = new AstAlways(nodep->fileline(),
|
||||
VAlwaysKwd::ALWAYS,
|
||||
sentreep,
|
||||
bodysp);
|
||||
VAlwaysKwd::ALWAYS, sentreep, bodysp);
|
||||
// Install it
|
||||
if (selfDestruct) {
|
||||
// Delete it after making the tree. This way we can tell the user
|
||||
|
|
|
@ -172,8 +172,7 @@ private:
|
|||
AstIf* makeActiveIf(AstSenTree* sensesp) {
|
||||
AstNode* senEqnp = createSenseEquation(sensesp->sensesp());
|
||||
if (!senEqnp) sensesp->v3fatalSrc("No sense equation, shouldn't be in sequent activation.");
|
||||
AstIf* newifp = new AstIf (sensesp->fileline(),
|
||||
senEqnp, NULL, NULL);
|
||||
AstIf* newifp = new AstIf(sensesp->fileline(), senEqnp, NULL, NULL);
|
||||
return (newifp);
|
||||
}
|
||||
void clearLastSen() {
|
||||
|
|
|
@ -327,8 +327,7 @@ private:
|
|||
} else {
|
||||
postLogicp = new AstIf(nodep->fileline(),
|
||||
new AstVarRef(nodep->fileline(), setvscp, false),
|
||||
NULL,
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
UINFO(9," Created "<<postLogicp<<endl);
|
||||
finalp->addBodysp(postLogicp);
|
||||
finalp->user3p(setvscp); // Remember IF's vset variable
|
||||
|
|
|
@ -194,8 +194,7 @@ private:
|
|||
|
||||
AstNode* returnp = new AstCReturn(funcp->fileline(),
|
||||
new AstCCall(funcp->fileline(),
|
||||
funcp,
|
||||
argsp));
|
||||
funcp, argsp));
|
||||
|
||||
if (moreOfSame) {
|
||||
AstIf* ifp = new AstIf(funcp->fileline(),
|
||||
|
|
|
@ -323,8 +323,7 @@ private:
|
|||
if (expDim.first == pinDim.first && expDim.second == pinDim.second+1) {
|
||||
// Connection to array, where array dimensions match the instant dimension
|
||||
AstNode* exprp = nodep->exprp()->unlinkFrBack();
|
||||
exprp = new AstArraySel (exprp->fileline(), exprp,
|
||||
m_instSelNum);
|
||||
exprp = new AstArraySel(exprp->fileline(), exprp, m_instSelNum);
|
||||
nodep->exprp(exprp);
|
||||
} else if (expwidth == pinwidth) {
|
||||
// NOP: Arrayed instants: widths match so connect to each instance
|
||||
|
|
|
@ -880,12 +880,12 @@ int V3PreProcImp::getStateToken() {
|
|||
if (m_lexp->m_keepComments == KEEPCMT_SUB) {
|
||||
string rtn; rtn.assign(yyourtext(),yyourleng());
|
||||
comment(rtn);
|
||||
// Need to insure "foo/**/bar" becomes two tokens
|
||||
// Need to ensure "foo/**/bar" becomes two tokens
|
||||
insertUnreadback(" ");
|
||||
} else if (m_lexp->m_keepComments) {
|
||||
return (tok);
|
||||
} else {
|
||||
// Need to insure "foo/**/bar" becomes two tokens
|
||||
// Need to ensure "foo/**/bar" becomes two tokens
|
||||
insertUnreadback(" ");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,8 +114,7 @@ private:
|
|||
AstNRelinker replaceHandle;
|
||||
AstNode* earliercondp = ifp->condp()->unlinkFrBack(&replaceHandle);
|
||||
AstNode* newp = new AstLogAnd(condp->fileline(),
|
||||
condp,
|
||||
earliercondp);
|
||||
condp, earliercondp);
|
||||
UINFO(4, "Edit BOUNDLVALUE "<<newp<<endl);
|
||||
replaceHandle.relink(newp);
|
||||
}
|
||||
|
@ -423,8 +422,7 @@ private:
|
|||
xnum.setAllBitsX();
|
||||
}
|
||||
AstNode* newp = new AstCondBound(nodep->fileline(),
|
||||
condp,
|
||||
nodep,
|
||||
condp, nodep,
|
||||
new AstConst(nodep->fileline(), xnum));
|
||||
if (debug()>=9) newp->dumpTree(cout," _new: ");
|
||||
// Link in conditional, can blow away temp xor
|
||||
|
@ -438,8 +436,7 @@ private:
|
|||
AstNode* bitp = nodep->bitp()->unlinkFrBack(&replaceHandle);
|
||||
V3Number zeronum (nodep->fileline(), bitp->width(), 0);
|
||||
AstNode* newp = new AstCondBound(bitp->fileline(),
|
||||
condp,
|
||||
bitp,
|
||||
condp, bitp,
|
||||
new AstConst(bitp->fileline(), zeronum));
|
||||
// Added X's, tristate them too
|
||||
if (debug()>=9) newp->dumpTree(cout," _new: ");
|
||||
|
|
|
@ -344,7 +344,8 @@ private:
|
|||
nodep->v3error("["<<msb<<":"<<lsb<<"] Range extract has backward bit ordering, perhaps you wanted ["<<lsb<<":"<<msb<<"]");
|
||||
int x = msb; msb = lsb; lsb = x;
|
||||
}
|
||||
AstNode* widthp = new AstConst (msbp->fileline(), AstConst::Unsized32(), // Unsized so width from user
|
||||
AstNode* widthp = new AstConst(msbp->fileline(),
|
||||
AstConst::Unsized32(), // Unsized so width from user
|
||||
msb +1-lsb);
|
||||
AstSel* newp = new AstSel(nodep->fileline(),
|
||||
fromp,
|
||||
|
@ -361,7 +362,8 @@ private:
|
|||
nodep->v3error("["<<msb<<":"<<lsb<<"] Range extract has backward bit ordering, perhaps you wanted ["<<lsb<<":"<<msb<<"]");
|
||||
int x = msb; msb = lsb; lsb = x;
|
||||
}
|
||||
AstNode* widthp = new AstConst (msbp->fileline(), AstConst::Unsized32(), // Unsized so width from user
|
||||
AstNode* widthp = new AstConst(msbp->fileline(),
|
||||
AstConst::Unsized32(), // Unsized so width from user
|
||||
msb +1-lsb);
|
||||
AstSel* newp = new AstSel(nodep->fileline(),
|
||||
fromp,
|
||||
|
|
|
@ -33,9 +33,7 @@ using std::setw;
|
|||
|
||||
|
||||
// Convenience function to check we didn't finish unexpectedly
|
||||
static void
|
||||
checkFinish (const char *msg)
|
||||
{
|
||||
static void checkFinish(const char *msg) {
|
||||
if (Verilated::gotFinish ()) {
|
||||
vl_fatal (__FILE__, __LINE__, "dut", msg);
|
||||
exit (1);
|
||||
|
@ -45,12 +43,10 @@ checkFinish (const char *msg)
|
|||
|
||||
// Convenience function to log the value of a register in hex. Only in verbose
|
||||
// mode.
|
||||
static void
|
||||
logReg (int clk,
|
||||
static void logReg(int clk,
|
||||
const char *desc,
|
||||
int val,
|
||||
const char *note)
|
||||
{
|
||||
const char *note) {
|
||||
#ifdef TEST_VERBOSE
|
||||
cout << "clk = " << clk << ", " << desc << " = " << val << note << endl;
|
||||
#endif
|
||||
|
@ -59,8 +55,7 @@ logReg (int clk,
|
|||
|
||||
// Convenience function to log the value of a register in hex. Only in verbose
|
||||
// mode.
|
||||
static void
|
||||
logRegHex (int clk,
|
||||
static void logRegHex (int clk,
|
||||
const char *desc,
|
||||
int bitWidth,
|
||||
int val,
|
||||
|
@ -76,10 +71,8 @@ logRegHex (int clk,
|
|||
|
||||
|
||||
// Convenience function to check we got an expected result. Silent on success.
|
||||
static void
|
||||
checkResult (bool p,
|
||||
const char *msg_fail)
|
||||
{
|
||||
static void checkResult (bool p,
|
||||
const char *msg_fail) {
|
||||
if (!p) {
|
||||
vl_fatal (__FILE__, __LINE__, "dut", msg_fail);
|
||||
}
|
||||
|
@ -87,8 +80,7 @@ checkResult (bool p,
|
|||
|
||||
|
||||
// Main function instantiates the model and steps through the test.
|
||||
int main ()
|
||||
{
|
||||
int main () {
|
||||
Vt_dpi_accessors *dut = new Vt_dpi_accessors ("dut");
|
||||
svSetScope (svGetScopeFromName ("dut.t"));
|
||||
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
|
||||
unsigned int Array[3];
|
||||
|
||||
unsigned int
|
||||
StepSim (Vt_mem_slot *sim, unsigned int slot, unsigned int bit, unsigned int val, unsigned int rslot) {
|
||||
unsigned int StepSim(Vt_mem_slot *sim, unsigned int slot, unsigned int bit, unsigned int val, unsigned int rslot) {
|
||||
#ifdef TEST_VERBOSE
|
||||
printf("StepSim: slot=%d bit=%d val=%d rslot=%d\n", slot, bit, val, rslot);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue