1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./style.css" />
6 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./design.css" />
7 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"./print.css" />
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
13 <h1 id=
"systemcnetlisterreadme">SystemC netlister README
</h1>
15 <pre class=
"code">TITLE:
17 Gnetlist SystemC Backend
21 Transform a geda schematic into a transaction based structural systemc module.
25 1.- Only transaction based wires are considered (wire_name
<user_type
>).
26 2.- Unnamed wires are eliminated.
27 3.- In/out ports have to be inserted manually in the sysc code.
28 4.- Duplicated include headers are not eliminated by the backend.
29 5.- The maximum number of object constructor parameters is
31 (attr1-
>attr31).
33 GPL Electronic Design Automation (geda-gnetlist): http://www.geda-project.org
34 SystemC: http://www.systemc.org
38 Based on gnet-verilog.scm by Mike Jarabek.
45 ______________ _______________ _______________
46 | source | a
<user_type
> | algorithm | b
<float
> | sink |
47 | OUT|__ _________ __|IN OUT|__ _____ __|IN |
49 | infile.data| | | | outfile.data|
50 |____________| |_____________| |_____________|
56 module_name=test_sch2sysc
59 netname=a
<user_type
>
60 netname=b
<float
>
62 refdes=src1 attr1=infile.data
64 refdes=snk1 attr1=outfile.data
70 #include
"systemc.h
"
71 #include
"sink.h
"
72 #include
"source.h
"
73 #include
"algorithm.h
"
75 SC_MODULE (test_sch2sysc)
77 /* Port directions begin here */
79 /* Wires from the design */
80 sc_signal
<float
> b;
81 sc_signal
<packet_type
> a;
83 /* Package instantiations */
88 SC_CTOR(test_sch2sysc):
89 snk1(
"snk1
",
"outfile.data
"),
90 src1(
"src1
",
"infile.data
"),
91 alg1(
"alg1
")