1SP_PREPROC(1) User Contributed Perl Documentation SP_PREPROC(1)
2
3
4
6 sp_preproc - SystemPerl Preprocessor
7
9 sp_preproc <file.sp>
10
12 sp_preproc takes a .sp (systemperl) file and creates the SystemC header
13 and C files.
14
15 It is generally only executed from the standard build scripts.
16
18 --help
19 Displays this message and program version and exits.
20
21 --hier-only
22 Read only hierarchy information, ignore all signal information.
23 Useful for faster generation of sp_lib files.
24
25 --inline
26 Edit the existing source code "inline". Similar to the Verilog-
27 mode AUTOs. Use --inline --noautos to remove the expanded
28 automatics.
29
30 --libfile filename
31 Filename to write a list of sp_cells into, for later use as a
32 --libcell to another sp_preproc run.
33
34 --libfile-libcells
35 Include library cells in the --libfile report.
36
37 --libcell
38 Files listed before --libcell will be preprocessed or inlined as
39 appropriate. Files after noexpand will only be used for resolving
40 references, they will not be linked, linted, or otherwise checked.
41 --nolibcell can be used to re-enable checking of subsequent files.
42
43 --M filename
44 --MMD filename
45 Write dependencies in Makefile format to the specified filename.
46
47 --Mdir dirname
48 Write preprocessor outputs to the specified directory instead of
49 the current directory.
50
51 --ncsc
52 Create output files compatible with Cadence NC-SystemC.
53
54 --nolint
55 Disable lint style error checks, such as required to run doxygen on
56 the SystemPerl output.
57
58 --preproc
59 Preprocess the code, writing to separate header and cpp files.
60
61 --trace-duplicates
62 Include code to trace submodule signals connected directly to a
63 parent signal, generally for debugging interconnect. Without this
64 switch such signals will be presumed to have the value of their
65 parent module's signal, speeding and compressing traces.
66
67 --tree filename
68 Write a report showing the design hierarchy tree to the specified
69 filename. This format may change, it should not be parsed by
70 tools.
71
72 --noautos
73 With --inline, remove any expanded automatics.
74
75 --verbose
76 Shows which files are being written, or are the same.
77
78 --version
79 Displays program version and exits.
80
81 --write-verilog filename
82 Write the SystemC interconnections in Verilog format to the
83 specified filename. Note this does not include logic, it only
84 contains module ports and cells.
85
86 -M filename
87 Writes the dependency listing (similar to cpp -M) to the specified
88 filename.
89
90 -Dvar=value
91 Sets a define to the given value (similar to cpp -D).
92
93 -f file
94 Parse parameters from the given file.
95
97 See SystemC::SystemPerl for the language specification.
98
100 SystemPerl is part of the <http://www.veripool.org/> free SystemC
101 software tool suite. The latest version is available from CPAN and
102 from <http://www.veripool.org/systemperl>.
103
104 Copyright 2001-2010 by Wilson Snyder. This package is free software;
105 you can redistribute it and/or modify it under the terms of either the
106 GNU Lesser General Public License Version 3 or the Perl Artistic
107 License Version 2.0.
108
110 Wilson Snyder <wsnyder@wsnyder.org>
111
113 SystemC::Manual SystemC::SystemPerl
114
115
116
117perl v5.12.2 2010-11-03 SP_PREPROC(1)