Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Can you create a unique signature from GDS polygon shapes?

Status
Not open for further replies.

majd229

Member level 2
Joined
Jul 21, 2017
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
392
Can you create a unique signature from a GDS polygon shapes?

Hello,

My company uses Calibre for layout manipulation.

I'm exploring an idea where we can convert a DRC violation markers database into a layout/GDS (done), then create a unique signature from that particular rule.

For example, run DRC, and it fails on one rule, ruleX.

We take ruleX violation markers and convert it to GDS polygons (done).

Then, I want to get a unique signature on that particular GDS/rule markers.

You would say md5sum, sure, but the problem is that if in one run, the violation was one big rectangle, but in another run in a differen calibre version or for a number of factors, the violation was split into 2 small rectangles that make that same big rectangle from the first run. Although the violation shape is the same, it is now made of 2 rectangles, which will alter the md5sum.

Is there a way in Calibre to get rid of that issue, for example a way to combine any small shapes touching each other into 1 big shape, and if there are 2 shapes overlapping exactly, then merge them into 1 shape?

Thanks,
Majd
 

dick_freebird

Advanced Member level 5
Joined
Mar 4, 2008
Messages
7,501
Helped
2,168
Reputation
4,342
Reaction score
2,053
Trophy points
1,393
Location
USA
Activity points
59,992
Re: Can you create a unique signature from a GDS polygon shapes?

Every layout tool I have seen has a "merge selected" command
that will combine abutting or overlaping polygons and paths
on the same layer into single superset shapes.

You might like to copy error shapes to a working layer, merge,
delete the precursor shapes and change layer of the merged
back to error-layer, for ease of selecting cleanly just what
you want.

But I do not use Caliber.
 

ThisIsNotSam

Advanced Member level 5
Joined
Apr 6, 2016
Messages
2,192
Helped
383
Reputation
766
Reaction score
396
Trophy points
83
Activity points
11,233
Re: Can you create a unique signature from a GDS polygon shapes?

Hello,

My company uses Calibre for layout manipulation.

I'm exploring an idea where we can convert a DRC violation markers database into a layout/GDS (done), then create a unique signature from that particular rule.

For example, run DRC, and it fails on one rule, ruleX.

We take ruleX violation markers and convert it to GDS polygons (done).

Then, I want to get a unique signature on that particular GDS/rule markers.

You would say md5sum, sure, but the problem is that if in one run, the violation was one big rectangle, but in another run in a differen calibre version or for a number of factors, the violation was split into 2 small rectangles that make that same big rectangle from the first run. Although the violation shape is the same, it is now made of 2 rectangles, which will alter the md5sum.

Is there a way in Calibre to get rid of that issue, for example a way to combine any small shapes touching each other into 1 big shape, and if there are 2 shapes overlapping exactly, then merge them into 1 shape?

Thanks,
Majd

I am almost sure Calibre is not able to do anything like what you want automatically. You can do XOR compare, which would flag that that 1 big shape is equivalent to the 2 overlapping ones, but it would not combine them automatically for you, it would only flag them.

- - - Updated - - -

Every layout tool I have seen has a "merge selected" command
that will combine abutting or overlaping polygons and paths
on the same layer into single superset shapes.

You might like to copy error shapes to a working layer, merge,
delete the precursor shapes and change layer of the merged
back to error-layer, for ease of selecting cleanly just what
you want.

But I do not use Caliber.

The merge functionality is there. But the problem is that the OP wants to automate the merge of 2 arbitrarily selected shapes. I am not sure that can be done.
 

majd229

Member level 2
Joined
Jul 21, 2017
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
392
Re: Can you create a unique signature from a GDS polygon shapes?

I am almost sure Calibre is not able to do anything like what you want automatically. You can do XOR compare, which would flag that that 1 big shape is equivalent to the 2 overlapping ones, but it would not combine them automatically for you, it would only flag them.

- - - Updated - - -



The merge functionality is there. But the problem is that the OP wants to automate the merge of 2 arbitrarily selected shapes. I am not sure that can be done.



Can you elaborate? I wasn't able to find anything about "merge" in the reference manual, not even remotely. Thanks
 

ThisIsNotSam

Advanced Member level 5
Joined
Apr 6, 2016
Messages
2,192
Helped
383
Reputation
766
Reaction score
396
Trophy points
83
Activity points
11,233
Re: Can you create a unique signature from a GDS polygon shapes?

Can you elaborate? I wasn't able to find anything about "merge" in the reference manual, not even remotely. Thanks

I believe the command is layout and the option is merge.
 

majd229

Member level 2
Joined
Jul 21, 2017
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
392
Re: Can you create a unique signature from a GDS polygon shapes?

I see. That actually merges multiple layouts.

Actually, I use layout filemerge to merge multiple rule GDS into 1, but i guess that doesnt merge the shapes.

- - - Updated - - -

You are right. I have 2 arbitrary shapes in 1 layout.
Any remedy to this issue?
 

dick_freebird

Advanced Member level 5
Joined
Mar 4, 2008
Messages
7,501
Helped
2,168
Reputation
4,342
Reaction score
2,053
Trophy points
1,393
Location
USA
Activity points
59,992
Re: Can you create a unique signature from a GDS polygon shapes?

DRC as I have observed it, always does a merge-all layer by
layer before performing any of the checks for spacing or extent.
I have often seen this use a "destination layer" so as not to
mung the original database.

Perhaps within the Caliber engine this is what goes on as well,
in which case maybe a Caliber script is your ticket (like, "run
DRC on the DRC and save it out").
 

majd229

Member level 2
Joined
Jul 21, 2017
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
392
Re: Can you create a unique signature from a GDS polygon shapes?

Okay, lets say the shapes are the same and cells are the same 2 different gds. How can I get a unique signature for shapes+cells and ignore any text labes in the GDS? md5sum wont work for the GDS obviously since there is probably different binary data for the timestamp etc.
 

ThisIsNotSam

Advanced Member level 5
Joined
Apr 6, 2016
Messages
2,192
Helped
383
Reputation
766
Reaction score
396
Trophy points
83
Activity points
11,233
Re: Can you create a unique signature from a GDS polygon shapes?

Okay, lets say the shapes are the same and cells are the same 2 different gds. How can I get a unique signature for shapes+cells and ignore any text labes in the GDS? md5sum wont work for the GDS obviously since there is probably different binary data for the timestamp etc.

I think you should consider building your own tool. There is freely available code for GDS parsing, so that part is done. You just have to script your intended functionality.
 

timof

Advanced Member level 2
Joined
Feb 21, 2008
Messages
679
Helped
219
Reputation
438
Reaction score
217
Trophy points
1,323
Location
San Jose, CA, USA
Activity points
7,161
Re: Can you create a unique signature from a GDS polygon shapes?

Mentor has implemented a utility called "checksum_util" that does exactly what you want.
It should be available in standard Mentor software installation path.

Their algorithm is described in this paper:

https://ieeexplore.ieee.org/document/7105901/
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top