You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that when using a reference cell, it is necessary to add the instance of the reference cell to the lib, otherwise it will fail. May I ask why this is happening? I think if a top-level cell is added to the lib, then the referenced cells contained in that top-level cell will be included together in the lib. But in reality, it's not like that. I hope you can answer, thank you!
That's the expected behavior. That was a design choice made in early development, because it is quite easy to simply replace your line with lib2.add(main, *main.dependencies()) and have the automatic behavior you desire.
I believe it has to do with some tools that have many GDS files, and can load them all as a distributed library. This is an assumption though, and may be an incorrect interpretation of behavior I see in closed-source tools.
I found that when using a reference cell, it is necessary to add the instance of the reference cell to the lib, otherwise it will fail. May I ask why this is happening? I think if a top-level cell is added to the lib, then the referenced cells contained in that top-level cell will be included together in the lib. But in reality, it's not like that. I hope you can answer, thank you!
my code:
test2.zip
(1)When lib adds instances that reference cells :
![image](https://private-user-images.githubusercontent.com/20516638/332637847-dd1b389b-93c3-4642-b297-64d2fab143a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxODI5NDYsIm5iZiI6MTcyMDE4MjY0NiwicGF0aCI6Ii8yMDUxNjYzOC8zMzI2Mzc4NDctZGQxYjM4OWItOTNjMy00NjQyLWIyOTctNjRkMmZhYjE0M2E5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDEyMzA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5ZDI2MDlhYWQxZmI4NmU1MzAyYjAyYjM1M2VmZDgwODQzZjQwOWZlOTA0OWFkYzRiNTZlZWFkMjQ2Mjk4NGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.8i0DlHgCPwsc2f9b51IB_BdowMzl9W91Kuzrw0-LpuU)
(2)When lib does not add an instance referencing cell :
![image](https://private-user-images.githubusercontent.com/20516638/332637956-aab1a3dc-0a08-491d-af01-ea1fc879d27b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxODI5NDYsIm5iZiI6MTcyMDE4MjY0NiwicGF0aCI6Ii8yMDUxNjYzOC8zMzI2Mzc5NTYtYWFiMWEzZGMtMGEwOC00OTFkLWFmMDEtZWExZmM4NzlkMjdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDEyMzA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1YWJmYjc0MjA5YTgwN2ExYjA3N2Y4NTJmMjUxNjY2MTJkYjZiYmYxZTVmZTczOWM1ZmNlM2MxNTBmZGY2YzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UXP6uL09WI1r3bhO0MwXMsvl5h4gePW6s19gCZ1Eu3U)
![image](https://private-user-images.githubusercontent.com/20516638/332638018-681c11e6-89da-4c66-8342-6b7f0020ff6a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxODI5NDYsIm5iZiI6MTcyMDE4MjY0NiwicGF0aCI6Ii8yMDUxNjYzOC8zMzI2MzgwMTgtNjgxYzExZTYtODlkYS00YzY2LTgzNDItNmI3ZjAwMjBmZjZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDEyMzA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzZjQ4NjgxMjA4MzcxZGM2MGNiOTZmN2VmNGYzNGY3MDUwNGUwMzczZmFlNGI3YzRlYWM3NmJiNDAwZTljOTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.IeVLIiJnUTcClmSVIdYWlbba1AilSNwsg8sgL9P1Ypc)
The text was updated successfully, but these errors were encountered: