File size: 4,834 Bytes
660c0b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# I have some trouble when running Openroad tools for foreign pdk.

Tool: Initialize Floorplan

Subcategory: Floorplan initialization issue

## Conversation

### OuDret
Hello, I have been reading documentation and trying stuff with given pdks for about two weeks. My goal was to run OpenRoadFlowScripts but, since there is a lot of stuff, I’ve took its makefile, config files and scripts and just extracted the openroad commands that I really need, so I can exactly know what args and what files i need and create them. Also running the commands 1 by 1 alongside GUI application helps me understanding what’s going on.

When calling the commands tho, I had some issues i could not solve. If you have an idea of any of the following problems I'm facing or any advice let me know.

**1. I didn’t manage to initialize floorplan with custom die area. It doesn’t matter which values I use as die_are or core_area, it just doesn’t work properly.** 

When I run something like the command below, having stdSite size defined as 400 by 400 um it just does nothing. The verilog file provided is a simple inverter already synthesized using yosys into a single NAND cell which size is set in .lef as 200 by 200. 

<img width="368" alt="Screenshot 2023-09-15 101107" src="https://github.com/The-OpenROAD-Project/OpenROAD/assets/74424277/3e31cb25-5394-40b2-86be-92df69e3e751">


Meanwhile, if I just let openroad to decide what size to give it just works for small core utilization value, which kinda makes sense.

<img width="356" alt="Screenshot 2023-09-15 101209" src="https://github.com/The-OpenROAD-Project/OpenROAD/assets/74424277/e4fb9b00-9224-44a5-8771-2688296f0bf6">


Do you think I’m forgetting any step? The commands I run before getting to that point are the following:

```

read_liberty /path/lib/NandCellLibrary.lib

read_lef /path/lef/NandCellLibrary.tech.lef

read_lef /path/lef/NandCellLibrary.macro.lef  

read_verilog /path//inverter.v

link_design inverter

read_sdc /path/constraint.sdc



initialize_floorplan -die_area {0 0 10000 10000} -core_area {1000 1000 5000 5000} -site stdSite

```

**2. I have no macros stored in odb despite having them declared in lef/NandCellLibrary.macro.lef**  

If I just use utilization_area **floorplan_initialization** and keep running the following commands all seems to be working properly



```

make_tracks met1 -x_offset 10 -x_pitch 10 -y_offset 10 -y_pitch 10
make_tracks met2 -x_offset 10 -x_pitch 10 -y_offset 10 -y_pitch 10

make_tracks met3 -x_offset 10 -x_pitch 10 -y_offset 10 -y_pitch 10
remove_buffers

place_pins -hor_layer met2 -ver_layer met3 -random
global_placement -density 0.5 -pad_left 0 -pad_right 0

```



<img width="343" alt="Screenshot 2023-09-15 101442" src="https://github.com/The-OpenROAD-Project/OpenROAD/assets/74424277/5367aa8f-4e66-4fe4-97b1-a0e7fed6f10d">



until I try to run macro placement



<img width="350" alt="Screenshot 2023-09-15 101654" src="https://github.com/The-OpenROAD-Project/OpenROAD/assets/74424277/35713305-ea34-4e1e-b481-b7402269ea8e">



the error raised means that when running the following tcl procedure it has not found any macro

```

proc find_macros {} {
  set macros ""

  set db [ord::get_db]

  set block [[$db getChip] getBlock]

  foreach inst [$block getInsts] {

	set inst_master [$inst getMaster]

	# BLOCK means MACRO cells

	if { [string match [$inst_master getType] "BLOCK"] } {

  	append macros " " $inst

	}

  }

  return $macros

}

```


the thing is that I have the NAND macro and another one called FILL defined in my .lefs and .lib . Then why could it be that there is no macro in db ?

**Some things to be said.**
When running  **read_liberty**, it prints 1 into terminal. Does it mean that there’s an error? It seems I can keep running things. If so, is there any way to properly debug it?

It also happens if I run **check_status** command after reading all input files, which I didn’t even find in documentation, so I just ignored it.

Again, if you had any idea or advice of what I’m doing wrong, if I skipt some important step, etc. let me know, please.

If i manage to make it work i will try to post the whole flow command by command. It may help someone someday

Thank you.



### maliberty
What is the size of stdSite?  Is this a PDK you can share or is it proprietary?

Do you have any instances of the macro in your netlist?

### maliberty
```

SITE stdSite

  SYMMETRY Y ;

  CLASS CORE ;

  SIZE 500 BY 500 ;

END stdSite

```
is a huge site (500um x 500um) - I'm guessing that is a mistake though it doesn't explain the problem.

### maliberty
Your LEF is missing the units for "  DATABASE MICRONS \<val\>;".  There is a bug when this is unspecified that I'll fix but you should set it (the LEF default value is very old).