Skip to content

False positive on pin swap #86

@maliberty

Description

@maliberty

On the attached test case eqy gives (run eqy_test.run.sh):

EQY 22:43:51 [eqy_test] partition: ERROR: conflicting matches for gold bit _052_: _052_ vs _050_

In the golden netlist:

  OA21x2_ASAP7_75t_R _302_ (
    .A1(_052_),
    .A2(_050_),
    .B(_049_),
    .Y(_119_)
  );

while in the test netlist the A1/A2 pins are swapped:

 OA21x2_ASAP7_75t_R _302_ (.A1(_050_),
    .A2(_052_),
    .B(_049_),
    .Y(_119_));
```
This is logically equivalent for the cell:
```
module OA21x2_ASAP7_75t_R (Y, A1, A2, B);
	output Y;
	input A1, A2, B;

	// Function
	wire int_fwire_0, int_fwire_1;

	and (int_fwire_0, A2, B);
	and (int_fwire_1, A1, B);
	or (Y, int_fwire_1, int_fwire_0);

	
endmodule
```

[bug.zip](https://github.com/user-attachments/files/23780970/bug.zip)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions