Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Interchange] Refactor & speedup reader/writers #677

Merged
merged 27 commits into from
Jun 13, 2023
Merged

Conversation

eddieh-xlnx
Copy link
Collaborator

@eddieh-xlnx eddieh-xlnx commented May 20, 2023

New:

  • BELPinCache for faster BELPin lookups from SiteInst and string indices
  • PIPCache for faster PIP lookups from Tile and string indices

Number of optimizations/refactoring/options for higher performance, e.g. deferring EDIFPortInstList sorting until after all port insts have been inserted.

eddieh-xlnx added 22 commits May 8, 2023 15:38
Signed-off-by: Eddie Hung <[email protected]>
Signed-off-by: Eddie Hung <[email protected]>
Conflicts:
	src/com/xilinx/rapidwright/interchange/PhysNetlistReader.java
Signed-off-by: Eddie Hung <[email protected]>

Conflicts:
	src/com/xilinx/rapidwright/edif/EDIFCell.java
	src/com/xilinx/rapidwright/edif/EDIFCellInst.java
	src/com/xilinx/rapidwright/edif/EDIFPort.java
Signed-off-by: Eddie Hung <[email protected]>
@eddieh-xlnx eddieh-xlnx force-pushed the interchange_enum branch 2 times, most recently from 2503baa to 51ca0a9 Compare May 23, 2023 16:12
Base automatically changed from interchange_enum to master May 23, 2023 19:16
@eddieh-xlnx eddieh-xlnx changed the title [Interchange] Refactor reader/writers [Interchange] Refactor & speedup reader/writers May 23, 2023
@eddieh-xlnx eddieh-xlnx requested a review from clavin-xlnx May 23, 2023 19:29
@eddieh-xlnx eddieh-xlnx marked this pull request as ready for review May 23, 2023 19:29
@eddieh-xlnx eddieh-xlnx merged commit 70670e1 into master Jun 13, 2023
@eddieh-xlnx eddieh-xlnx deleted the interchange_refac branch June 13, 2023 20:44
haydenc-amd pushed a commit to haydenc-amd/RapidWright that referenced this pull request Jun 16, 2023
* Refactor Interchange Log/Phys Reader/Writer

Signed-off-by: Eddie Hung <[email protected]>

* More tidying up

Signed-off-by: Eddie Hung <[email protected]>

* Fix broken test

Signed-off-by: Eddie Hung <[email protected]>

* More refactoring/improvements

Signed-off-by: Eddie Hung <[email protected]>

* Fix collapse macro collision, plus optimize

Signed-off-by: Eddie Hung <[email protected]>

* Test for collapseMacroUnisims() does not collide

Signed-off-by: Eddie Hung <[email protected]>

* EDIFNetlist.getHDIPrimitive() to deep copy too

Signed-off-by: Eddie Hung <[email protected]>

* Split Enumerator into {Identity,String}Enumerator

Signed-off-by: Eddie Hung <[email protected]>

* Get rid of EDIFEnumerable

Signed-off-by: Eddie Hung <[email protected]>

Conflicts:
	src/com/xilinx/rapidwright/edif/EDIFCell.java
	src/com/xilinx/rapidwright/edif/EDIFCellInst.java
	src/com/xilinx/rapidwright/edif/EDIFPort.java

* Interchange.benchmark() to return Path

Signed-off-by: Eddie Hung <[email protected]>

* Bump copyright year

Signed-off-by: Eddie Hung <[email protected]>

* Fix EDIFNetlist.getHDIPrimitive()

Signed-off-by: Eddie Hung <[email protected]>

* Fix EDIFNetlist.getHDIPrimitive()

Signed-off-by: Eddie Hung <[email protected]>

* Another EDIFNetlist.getHDIPrimitive() fix

Signed-off-by: Eddie Hung <[email protected]>

* Update src/com/xilinx/rapidwright/interchange/IdentityEnumerator.java

Signed-off-by: eddieh-xlnx <[email protected]>

* Address some review comments

Signed-off-by: Eddie Hung <[email protected]>

* Address some more review

Signed-off-by: Eddie Hung <[email protected]>

---------

Signed-off-by: Eddie Hung <[email protected]>
Signed-off-by: eddieh-xlnx <[email protected]>
Signed-off-by: Hayden Cook <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants