Commentary
This commit is contained in:
parent
f19ba9d54d
commit
0fba25c1b3
|
|
@ -974,11 +974,10 @@ Verilator will convert the top level module to a SC_MODULE. This module
|
||||||
will plug directly into a SystemC netlist.
|
will plug directly into a SystemC netlist.
|
||||||
|
|
||||||
The SC_MODULE gets the same pinout as the Verilog module, with the
|
The SC_MODULE gets the same pinout as the Verilog module, with the
|
||||||
following type conversions: Pins of a single bit become bool, unless they
|
following type conversions: Pins of a single bit become bool. Pins 2-32
|
||||||
are marked with `systemc_clock, in which case they become sc_clock's (for
|
bits wide become uint32_t's. Pins 33-64 bits wide become sc_bv's or
|
||||||
SystemC 1.2, not needed in SystemC 2.0). Pins 2-32 bits wide become
|
uint64_t's depending on the --no-pins64 switch. Wider pins become sc_bv's.
|
||||||
uint32_t's. Pins 33-64 bits wide become sc_bv's or uint64_t's depending on
|
(Uints simulate the fastest so are used where possible.)
|
||||||
the --no-pins64 switch. Wider pins become sc_bv's.
|
|
||||||
|
|
||||||
Lower modules are not pure SystemC code. This is a feature, as using the
|
Lower modules are not pure SystemC code. This is a feature, as using the
|
||||||
SystemC pin interconnect scheme everywhere would reduce performance by an
|
SystemC pin interconnect scheme everywhere would reduce performance by an
|
||||||
|
|
@ -1341,7 +1340,9 @@ using the --public switch.
|
||||||
=item /*verilator sc_clock*/
|
=item /*verilator sc_clock*/
|
||||||
|
|
||||||
Used after a input declaration to indicate the signal should be declared in
|
Used after a input declaration to indicate the signal should be declared in
|
||||||
SystemC as a sc_clock instead of a bool.
|
SystemC as a sc_clock instead of a bool. This was needed in SystemC 1.1
|
||||||
|
and 1.2 only; versions 2.0 and later do not require clock pins to be
|
||||||
|
sc_clocks and this is no longer needed.
|
||||||
|
|
||||||
=item /*verilator tracing_off*/
|
=item /*verilator tracing_off*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ VERILATOR_FLAGS = --sc $(V_FLAGS) top.v
|
||||||
|
|
||||||
precopy: obj_dir obj_dir/sc_main.cpp
|
precopy: obj_dir obj_dir/sc_main.cpp
|
||||||
obj_dir/sc_main.cpp: ../test_sp/sc_main.cpp
|
obj_dir/sc_main.cpp: ../test_sp/sc_main.cpp
|
||||||
|
mkdir obj_dir
|
||||||
cp $^ $@
|
cp $^ $@
|
||||||
|
|
||||||
prep:
|
prep:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue