~ubuntu-branches/ubuntu/raring/verilator/raring-proposed

« back to all changes in this revision

Viewing changes to src/Verilator.cpp

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2013-01-13 11:25:29 UTC
  • mfrom: (1.2.16)
  • Revision ID: package-import@ubuntu.com-20130113112529-1jn3n8rbf8glvu2c
Tags: 3.844-1
* New upstream release.
* debian/copyright: Updated copyright years.
* Refresh patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
//
7
7
//*************************************************************************
8
8
//
9
 
// Copyright 2003-2012 by Wilson Snyder.  This program is free software; you can
 
9
// Copyright 2003-2013 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.
314
314
        v3Global.checkTree();
315
315
        V3Global::dumpGlobalTree("const.tree");
316
316
 
 
317
        // Convert case statements to if() blocks.  Must be after V3Unknown
 
318
        // Must be before V3Task so don't need to deal with task in case value compares
 
319
        V3Case::caseAll(v3Global.rootp());
 
320
        V3Global::dumpGlobalTree("case.tree");
 
321
 
317
322
        // Inline all tasks
318
323
        V3Task::taskAll(v3Global.rootp());
319
324
        V3Global::dumpGlobalTree("task.tree");
331
336
        V3Slice::sliceAll(v3Global.rootp());
332
337
        V3Global::dumpGlobalTree("slices.tree");
333
338
 
334
 
        // Convert case statements to if() blocks.  Must be after V3Unknown
335
 
        V3Case::caseAll(v3Global.rootp());
336
 
        V3Global::dumpGlobalTree("case.tree");
337
 
 
338
339
        // Push constants across variables and remove redundant assignments
339
340
        V3Const::constifyAll(v3Global.rootp());
340
341
        V3Global::dumpGlobalTree("const.tree");