Skip to content

strmxor -u -l wrongly reports differences on identical layers #2262

@stefanottili

Description

@stefanottili

Testing hierarchical xor on https://github.com/RTimothyEdwards/gf180mcu_ocd_sram_test
shows that while -u is correct, -u -l wrongly reports layers as different that are not.

strmxor -u -n=8 -d=11 gds/gf180mcu_ocd_sram_top.gds.gz gds/gf180mcu_ocd_sram_filled.gds.gz xor.hier_no_l.oas | tee hier_no_l.oas

  Layer      Output       Differences (hierarchical shape count)
  ----------------------------------------------------------------
  22/4       -            (no such layer in first layout)
  30/4       -            (no such layer in first layout)
  34/4       -            (no such layer in first layout)
  36/4       -            (no such layer in first layout)
  42/4       -            (no such layer in first layout)
  46/4       -            (no such layer in first layout)
  81/4       -            (no such layer in first layout)

strmxor -l -n=8 -d=11 -u gds/gf180mcu_ocd_sram_top.gds.gz gds/gf180mcu_ocd_sram_filled.gds.gz xor.hier.oas | tee hier.log

  Layer      Output       Differences (hierarchical shape count)
  ----------------------------------------------------------------
  22/4       22/4         1
  30/4       30/4         1
  34/4       34/4         1
  36/0       36/0         10130
  36/4       36/4         1
  42/4       42/4         1
  42/10      42/10        125
  46/4       46/4         1
  81/0       81/0         51766
  81/4       81/4         1
  204/10     204/10       5

feature request: it would be nice to have the flat shape count too.

running xor flat confirms that only the tile layers differ.

strmxor -l -n=8 -d=11 -m -p=500 gds/gf180mcu_ocd_sram_top.gds.gz gds/gf180mcu_ocd_sram_filled.gds.gz xor.flat.oas | tee flat.log

  Layer      Output       Differences (shape count)
  ----------------------------------------------------------------
  22/4       22/4         96858
  30/4       30/4         88975
  34/4       34/4         560748
  36/4       36/4         525834
  42/4       42/4         488536
  46/4       46/4         439208
  81/4       81/4         316790

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions