From 10e6f61125c4e646302cc389879b959d2507f459 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 14 Feb 2010 19:23:29 -0500 Subject: [PATCH] Commentary --- internals.pod | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/internals.pod b/internals.pod index ee27762d2..617a23345 100644 --- a/internals.pod +++ b/internals.pod @@ -113,9 +113,22 @@ changes, and writes the trace for each change. To accelerate this process the evaluation process records a bitmask of variables that might have changed; if clear, checking those signals for changes may be skipped. -=head1 VISITOR FUNCTIONS +=head1 CODING CONVENTIONS -=head2 Passing Variables +=head2 Indentation style + +To match the indentation of Verilator C++ sources, use 4 spaces per level, +and leave tabs at 8 columns, so every other indent level is a tab stop. + +In Emacs, use in your ~/.emacs + + (c-set-style "cc-mode") + +This sets indentation to the cc-mode defaults. (Verilator predates a +CC-mode change of several years ago which overrides the defaults with GNU +style indentation; the c-set-style undoes that.) + +=head2 Visitor Functions There's three ways data is passed between visitor functions.