~ubuntu-branches/ubuntu/wily/verilator/wily-proposed

« back to all changes in this revision

Viewing changes to src/V3Clock.cpp

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2015-04-26 16:20:52 UTC
  • mfrom: (4.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20150426162052-69yjwh512m0adl2k
Tags: 3.872-2
* Upload to unstable.
* debian/patches/*: Added DEP-3 patch headers.
* Remove debian/gbp.conf, not needed in master branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
//
7
7
//*************************************************************************
8
8
//
9
 
// Copyright 2003-2014 by Wilson Snyder.  This program is free software; you can
 
9
// Copyright 2003-2015 by Wilson Snyder.  This program is free software; you can
10
10
// redistribute it and/or modify it under the terms of either the GNU
11
11
// Lesser General Public License Version 3 or the Perl Artistic License
12
12
// Version 2.0.
99
99
        UINFO(4,"New Last: "<<newvscp<<endl);
100
100
        return newvscp;
101
101
    }
102
 
    AstVarScope* getCreateLocalVar(FileLine* fl, const string& name, AstVar* examplep, int width) {
103
 
        AstVar* newvarp;
104
 
        if (width) {
105
 
            newvarp = new AstVar (fl, AstVarType::BLOCKTEMP, name, VFlagLogicPacked(), width);
106
 
        } else {
107
 
            newvarp = new AstVar (fl, AstVarType::BLOCKTEMP, name, examplep); // No range; 1 bit.
108
 
        }
109
 
        m_modp->addStmtp(newvarp);
110
 
        AstVarScope* newvscp = new AstVarScope(fl, m_scopep, newvarp);
111
 
        m_scopep->addVarp(newvscp);
112
 
        return newvscp;
113
 
    }
114
102
    AstNode* createSenItemEquation(AstSenItem* nodep) {
115
103
        // We know the var is clean, and one bit, so we use binary ops
116
104
        // for speed instead of logical ops.
419
407
void V3Clock::clockAll(AstNetlist* nodep) {
420
408
    UINFO(2,__FUNCTION__<<": "<<endl);
421
409
    ClockVisitor visitor (nodep);
 
410
    V3Global::dumpCheckGlobalTree("clock.tree", 0, v3Global.opt.dumpTreeLevel(__FILE__) >= 3);
422
411
}