Skip to content

Commit 9677807

Browse files
committed
odb: Test again reference cdl file.
Signed-off-by: Christian COSTA <christian.costa@st.com>
1 parent 2b29b89 commit 9677807

4 files changed

Lines changed: 22 additions & 5 deletions

File tree

src/odb/test/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ filegroup(
345345
"replace_hier_mod4": [
346346
"gcd_abstract_lef.lefok",
347347
],
348+
"write_cdl": [
349+
"write_cdl_escaped.cdl",
350+
],
348351
}.get(
349352
test_name,
350353
[],

src/odb/test/write_cdl.cdlok

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* CDL Netlist generated by OpenROAD
2+
3+
*.BUSDELIMITER [
4+
5+
.SUBCKT top in_reg[0] in_reg[1] out_reg[0] out_reg[1]
6+
Xi_macro in_reg[0] in_reg[1] out_reg[0] out_reg[1] _unconnected_0
7+
+ _unconnected_1 MACRO_CELL
8+
.ENDS top

src/odb/test/write_cdl.ok

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[INFO ODB-0227] LEF file: write_cdl.lef, created 1 layers, 1 library cells
22
[WARNING ODB-0284] Master BUFFER not found.
33
[WARNING ODB-0284] Master BUFFER not found.
4-
pass
4+
No differences found.
5+
No differences found.

src/odb/test/write_cdl.tcl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1+
source "helpers.tcl"
2+
13
read_lef write_cdl.lef
24
read_liberty write_cdl.lib
35

46
read_verilog write_cdl.v
57

68
link_design top
79

8-
write_cdl -masters {write_cdl.cdl} results/write_cdl_out.cdl
10+
set cdl_file [make_result_file write_cdl_out.cdl]
11+
write_cdl -masters {write_cdl.cdl} $cdl_file
12+
13+
set cdl_escaped_file [make_result_file write_cdl_escaped_out.cdl]
14+
write_cdl -masters {write_cdl_escaped.cdl} $cdl_escaped_file
915

10-
write_cdl -masters {write_cdl_escaped.cdl} results/write_cdl_escaped_out.cdl
16+
diff_files write_cdl.cdlok $cdl_file
1117

12-
puts "pass"
13-
exit 0
18+
diff_files write_cdl.cdlok $cdl_escaped_file

0 commit comments

Comments
 (0)