Skip to content

Commit d5b2ce1

Browse files
committed
Remove netlistsvg diagram for blackbox modules and add pb_type.xml
Signed-off-by: Daniel Lim Wee Soong <[email protected]>
1 parent 84b9853 commit d5b2ce1

File tree

11 files changed

+54
-41
lines changed

11 files changed

+54
-41
lines changed

tests/clocks/dff_comb_one_clock/README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ The following shows a combinational logic design driven by a clock. `input wire
88
.. verilog-diagram:: ../../../tests/clocks/dff_comb_one_clock/dff_comb_one_clock.sim.v
99
:type: netlistsvg
1010
:module: BLOCK
11-
:caption: tests/clocks/dff_comb_one_clock/dff_comb_one_clock.sim.v
11+
12+
|
1213
1314
.. literalinclude:: ../../../tests/clocks/dff_comb_one_clock/dff_comb_one_clock.sim.v
1415
:language: verilog
1516
:start-after: */
17+
:caption: tests/clocks/dff_comb_one_clock/dff_comb_one_clock.sim.v
1618
1719
The `is_clock` attribute of the `a` port is set to 1, and the ports `b`, `c` and `d` have their `clock` attribute set to `a`.
1820

1921
.. literalinclude:: ../../../tests/clocks/dff_comb_one_clock/golden.model.xml
20-
:language: xml
22+
:language: xml
23+
:caption: tests/clocks/dff_comb_one_clock/golden.model.xml

tests/clocks/dff_one_clock/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ The following shows a simple D-flip flop driven by one clock. `input wire a` sho
88
.. verilog-diagram:: ../../../tests/clocks/dff_one_clock/dff_one_clock.sim.v
99
:type: netlistsvg
1010
:module: BLOCK
11-
:caption: tests/clocks/dff_one_clock/dff_one_clock.sim.v
11+
12+
|
1213
1314
.. literalinclude:: ../../../tests/clocks/dff_one_clock/dff_one_clock.sim.v
1415
:language: verilog
1516
:start-after: */
17+
:caption: tests/clocks/dff_one_clock/dff_one_clock.sim.v
1618
1719
As you can see in the generated model, the `is_clock` attribute of the `a` port is set to 1, while the `b` and `c` ports have their `clock` attribute set to `a`.
1820

1921
.. literalinclude:: ../../../tests/clocks/dff_one_clock/golden.model.xml
2022
:language: xml
23+
:caption: tests/clocks/dff_one_clock/golden.model.xml

tests/clocks/dff_two_clocks/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ D-Flipflop with two clocks
88
.. verilog-diagram:: ../../../tests/clocks/dff_two_clocks/dff_two_clocks.sim.v
99
:type: netlistsvg
1010
:module: BLOCK
11-
:caption: tests/clocks/dff_two_clocks/dff_two_clocks.sim.v
11+
12+
|
1213
1314
.. literalinclude:: ../../../tests/clocks/dff_two_clocks/dff_two_clocks.sim.v
1415
:language: verilog
1516
:start-after: */
17+
:caption: tests/clocks/dff_two_clocks/dff_two_clocks.sim.v
1618
1719
The `is_clock` attribute of the `c1` and `c2` ports are set to 1, and the ports `a`, `b`, `c`, `o1` and `o2` have their `clock` attribute set to the respective clocks they are driven by.
1820

1921
.. literalinclude:: ../../../tests/clocks/dff_two_clocks/golden.model.xml
2022
:language: xml
23+
:caption: tests/clocks/dff_two_clocks/golden.model.xml

tests/clocks/input_attr_clock/README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ The following shows that `input wire a` is given the `(* CLOCK *)` attribute.
55

66
.. symbolator:: ../../../tests/clocks/input_attr_clock/input_attr_clock.sim.v
77

8-
.. verilog-diagram:: ../../../tests/clocks/input_attr_clock/input_attr_clock.sim.v
9-
:type: netlistsvg
10-
:module: BLOCK
11-
:caption: tests/clocks/input_attr_clock/input_attr_clock.sim.v
8+
|
129
1310
.. literalinclude:: ../../../tests/clocks/input_attr_clock/input_attr_clock.sim.v
1411
:language: verilog
1512
:start-after: */
13+
:caption: tests/clocks/input_attr_clock/input_attr_clock.sim.v
1614
1715
As such, the `is_clock` attribute of the `a` port is set to 1.
1816

1917
.. literalinclude:: ../../../tests/clocks/input_attr_clock/golden.model.xml
20-
:language: xml
18+
:language: xml
19+
:caption: tests/clocks/input_attr_clock/golden.model.xml

tests/clocks/input_attr_not_clock/README.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ Force input as regular input by setting the CLOCK attribute
88
.. verilog-diagram:: ../../../tests/clocks/input_attr_not_clock/block.sim.v
99
:type: netlistsvg
1010
:module: BLOCK
11-
:caption: tests/clocks/input_attr_not_clock/block.sim.v
11+
12+
|
1213
1314
.. literalinclude:: ../../../tests/clocks/input_attr_not_clock/block.sim.v
1415
:language: verilog
1516
:start-after: */
17+
:caption: tests/clocks/input_attr_not_clock/block.sim.v
1618
1719
As such, the `is_clock` attribute of the `a` port is not set.
1820

1921
.. literalinclude:: ../../../tests/clocks/input_attr_not_clock/golden.model.xml
20-
:language: xml
22+
:language: xml
23+
:caption: tests/clocks/input_attr_not_clock/golden.model.xml
24+
25+
.. literalinclude:: ../../../tests/clocks/input_attr_not_clock/golden.pb_type.xml
26+
:language: xml
27+
:caption: tests/clocks/input_attr_not_clock/golden.pb_type.xml

tests/clocks/input_named_clk/README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ An input wire can be set as a clock by assigning `clk` as its name.
55

66
.. symbolator:: ../../../tests/clocks/input_named_clk/input_named_clk.sim.v
77

8-
.. verilog-diagram:: ../../../tests/clocks/input_named_clk/input_named_clk.sim.v
9-
:type: netlistsvg
10-
:module: BLOCK
11-
:caption: tests/clocks/input_named_clk/input_named_clk.sim.v
8+
|
129
1310
.. literalinclude:: ../../../tests/clocks/input_named_clk/input_named_clk.sim.v
1411
:language: verilog
1512
:start-after: */
13+
:caption: tests/clocks/input_named_clk/input_named_clk.sim.v
1614
1715
As such, the `is_clock` attribute of the `clk` port is set to 1, without needing to set anything else in the verilog code.
1816

1917
.. literalinclude:: ../../../tests/clocks/input_named_clk/golden.model.xml
20-
:language: xml
18+
:language: xml
19+
:caption: tests/clocks/input_named_clk/golden.model.xml

tests/clocks/input_named_regex/README.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@ An input wire can be set as a clock by having `clk` in its name (case insensitiv
55

66
.. symbolator:: ../../../tests/clocks/input_named_regex/block.sim.v
77

8-
.. verilog-diagram:: ../../../tests/clocks/input_named_regex/block.sim.v
9-
:type: netlistsvg
10-
:module: BLOCK
11-
:caption: tests/clocks/input_named_regex/block.sim.v
8+
|
129
1310
.. literalinclude:: ../../../tests/clocks/input_named_regex/block.sim.v
1411
:language: verilog
1512
:start-after: */
13+
:caption: tests/clocks/input_named_regex/block.sim.v
1614
1715
As such, the `is_clock` attribute of wires with a variation of `clk` in their name is set to 1.
1816

1917
.. literalinclude:: ../../../tests/clocks/input_named_regex/golden.model.xml
20-
:language: xml
18+
:language: xml
19+
:caption: tests/clocks/input_named_regex/golden.model.xml
20+
21+
.. literalinclude:: ../../../tests/clocks/input_named_regex/golden.pb_type.xml
22+
:language: xml
23+
:caption: tests/clocks/input_named_regex/golden.pb_type.xml

tests/clocks/multiple_inputs_named_clk/README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ Set inputs as clock by name (multiple clock inputs)
55

66
.. symbolator:: ../../../tests/clocks/multiple_inputs_named_clk/multiple_inputs_named_clk.sim.v
77

8-
.. verilog-diagram:: ../../../tests/clocks/multiple_inputs_named_clk/multiple_inputs_named_clk.sim.v
9-
:type: netlistsvg
10-
:module: BLOCK
11-
:caption: tests/clocks/multiple_inputs_named_clk/multiple_inputs_named_clk.sim.v
8+
|
129
1310
.. literalinclude:: ../../../tests/clocks/multiple_inputs_named_clk/multiple_inputs_named_clk.sim.v
1411
:language: verilog
1512
:start-after: */
13+
:caption: tests/clocks/multiple_inputs_named_clk/multiple_inputs_named_clk.sim.v
1614
1715
As such, the `is_clock` attribute of the `rdclk` and `wrclk` ports are set to 1.
1816

1917
.. literalinclude:: ../../../tests/clocks/multiple_inputs_named_clk/golden.model.xml
20-
:language: xml
18+
:language: xml
19+
:caption: tests/clocks/multiple_inputs_named_clk/golden.model.xml

tests/clocks/multiple_outputs_named_clk/README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ Set outputs as clock by name (multiple clock outputs)
55

66
.. symbolator:: ../../../tests/clocks/multiple_outputs_named_clk/multiple_outputs_named_clk.sim.v
77

8-
.. verilog-diagram:: ../../../tests/clocks/multiple_outputs_named_clk/multiple_outputs_named_clk.sim.v
9-
:type: netlistsvg
10-
:module: BLOCK
11-
:caption: tests/clocks/multiple_outputs_named_clk/multiple_outputs_named_clk.sim.v
8+
|
129
1310
.. literalinclude:: ../../../tests/clocks/multiple_outputs_named_clk/multiple_outputs_named_clk.sim.v
1411
:language: verilog
1512
:start-after: */
13+
:caption: tests/clocks/multiple_outputs_named_clk/multiple_outputs_named_clk.sim.v
1614
1715
As such, the `is_clock` attribute of the `rdclk` and `wrclk` ports are set to 1.
1816

1917
.. literalinclude:: ../../../tests/clocks/multiple_outputs_named_clk/golden.model.xml
20-
:language: xml
18+
:language: xml
19+
:caption: tests/clocks/multiple_outputs_named_clk/golden.model.xml

tests/clocks/output_attr_clock/README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ The following shows that `output wire o` is given the `(* CLOCK *)` attribute.
55

66
.. symbolator:: ../../../tests/clocks/output_attr_clock/output_attr_clock.sim.v
77

8-
.. verilog-diagram:: ../../../tests/clocks/output_attr_clock/output_attr_clock.sim.v
9-
:type: netlistsvg
10-
:module: BLOCK
11-
:caption: tests/clocks/output_attr_clock/output_attr_clock.sim.v
8+
|
129
1310
.. literalinclude:: ../../../tests/clocks/output_attr_clock/output_attr_clock.sim.v
1411
:language: verilog
1512
:start-after: */
13+
:caption: tests/clocks/output_attr_clock/output_attr_clock.sim.v
1614
1715
As such, the `is_clock` attribute of the `o` port is set to 1.
1816

1917
.. literalinclude:: ../../../tests/clocks/output_attr_clock/golden.model.xml
20-
:language: xml
18+
:language: xml
19+
:caption: tests/clocks/output_attr_clock/golden.model.xml

tests/clocks/output_named_clk/README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ An output wire can be set as a clock by assigning `clk` as its name.
55

66
.. symbolator:: ../../../tests/clocks/output_named_clk/output_named_clk.sim.v
77

8-
.. verilog-diagram:: ../../../tests/clocks/output_named_clk/output_named_clk.sim.v
9-
:type: netlistsvg
10-
:module: BLOCK
11-
:caption: tests/clocks/output_named_clk/output_named_clk.sim.v
8+
|
129
1310
.. literalinclude:: ../../../tests/clocks/output_named_clk/output_named_clk.sim.v
1411
:language: verilog
1512
:start-after: */
13+
:caption: tests/clocks/output_named_clk/output_named_clk.sim.v
1614
1715
As such, the `is_clock` attribute of the `clk` output port is set to 1.
1816

1917
.. literalinclude:: ../../../tests/clocks/output_named_clk/golden.model.xml
20-
:language: xml
18+
:language: xml
19+
:caption: tests/clocks/output_named_clk/golden.model.xml

0 commit comments

Comments
 (0)