From d2105ba390da073ba9c3231c4f6d0b5f9f92b600 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 16 Nov 2008 20:30:22 -0500 Subject: [PATCH] Commentary --- bin/verilator | 19 +++++++++++-------- src/V3Trace.cpp | 6 +++--- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/bin/verilator b/bin/verilator index d466bb6d6..3fc3e5d85 100755 --- a/bin/verilator +++ b/bin/verilator @@ -445,20 +445,23 @@ mappings of optimizations to -O letters. Enables splitting the output .cpp/.sp files into multiple outputs. When a C++ file exceeds the specified number of operations, a new file will be -created. In addition, any slow routines will be placed into __Slow files. -This accelerates compilation by as optimization can be disabled on the slow -routines, and the remaining files can be compiled on parallel machines. -Using --output-split should have only a trivial impact on performance. -With GCC 3.3 on a 2GHz Opteron, --output-split 20000 will result in -splitting into approximately one-minute-compile chunks. +created at the next function boundary. In addition, any slow routines will +be placed into __Slow files. This accelerates compilation by as +optimization can be disabled on the slow routines, and the remaining files +can be compiled on parallel machines. Using --output-split should have +only a trivial impact on performance. With GCC 3.3 on a 2GHz Opteron, +--output-split 20000 will result in splitting into approximately +one-minute-compile chunks. =item --output-split-cfuncs I Enables splitting functions in the output .cpp/.sp files into multiple functions. When a generated function exceeds the specified number of operations, a new function will be created. With --output-split, this will -enable GCC to compile faster, at a small loss in performance that increases -with smaller statement values. +enable GCC to compile faster, at a small loss in performance that gets +worse with decreasing split values. Note that this option is stronger than +--output-split in the sense that --output-split will not split inside a +function. =item --prefix I diff --git a/src/V3Trace.cpp b/src/V3Trace.cpp index 1b30136aa..f7079ca2a 100644 --- a/src/V3Trace.cpp +++ b/src/V3Trace.cpp @@ -34,11 +34,11 @@ // For each var it sets, make vertex and edge from cfunc vertex // // For each CFUNC in graph -// Add ASSIGN(SEL(__Vm_funcActivity,activityNumber++),1) -// Create __Vm_funcActivity vector +// Add ASSIGN(SEL(__Vm_traceActivity,activityNumber++),1) +// Create __Vm_traceActivity vector // Sort TRACEs by activityNumber(s) they come from (may be more than one) // Each set of activityNumbers -// Add IF (SEL(__Vm_funcActivity,activityNumber),1) +// Add IF (SEL(__Vm_traceActivity,activityNumber),1) // Add traces under that activity number. // Assign trace codes: // If from a VARSCOPE, record the trace->varscope map