File size: 1,652 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
# ODB:: Is there any way to unfrozen the master? (Changing the size of dbMaster during the code is running)

Tool: OpenDB

Subcategory: Usage question

## Conversation

### ApeachM
```c++

// master setting

dbMaster *master = dbMaster::create(db_lib, lib_cell_name.c_str());

master->setWidth(width);

master->setHeight(height);

master->setType(dbMasterType::CORE);

...

master->setFrozen();

// connect inst to the master

    

dbInst* inst = dbInst::create(db_block, master, instance_info->inst_name.c_str());



// now I want to change the size of inst, by unfrozen master and resize width and height

// Is my intention of the below pseudo-code possible?

master->setUnFrozen();

master->setWidth(new_width);

master->setHeight(new_height);

master->setFrozen();

```

**I would like to know whether the above pseudo-code is possible.**

**I want to resize the cell size** after the cell size is already determined. (For example, after parsing lef and def).
But it seems like not to exist function for unfreezing.

If I want to change the cell size, then should I 
1. re-construct the instance,
2. re-construct the new dbMaster, 
3. deleting the original instance, 
4. and re-connecting the new dbInst to the nets, which was connected with the original one?

I would like to know whether **is there another way, which is more simple**.


Thanks for the time for reading my question.

Sincerely.

### maliberty
Why are you freezing it in the first place?

### maliberty
setWidth & setHeight don't care about the frozen status afaik.  The key thing is that the port list is frozen.  You can't add a dbMTerm to a frozen master.