Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/com/xilinx/rapidwright/edif/EDIFNetlist.java
Original file line number Diff line number Diff line change
Expand Up @@ -802,14 +802,7 @@ public void exportEDIF(OutputStream out, boolean stable) throws IOException {
}
os.write(EXPORT_CONST_DOUBLE_CLOSE);

List<EDIFLibrary> librariesToWrite = new ArrayList<>();
librariesToWrite.add(getHDIPrimitivesLibrary());
for (EDIFLibrary lib : EDIFTools.sortIfStable(getLibrariesMap().values(), stable)) {
if (lib.isHDIPrimitivesLibrary()) {
continue;
}
librariesToWrite.add(lib);
}
List<EDIFLibrary> librariesToWrite = getLibrariesInExportOrder();

if (dos != null) {
Deque<Future<ParallelDCPInput>> streamFutures = new ArrayDeque<>();
Expand Down
12 changes: 8 additions & 4 deletions test/src/com/xilinx/rapidwright/edif/TestEDIFNetlist.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,10 @@ public void testBussedPortNamingCollision(@TempDir Path path) {

EDIFCell top = origNetlist.getTopCell();

EDIFCellInst ff = top.createChildCellInst("ff", Design.getPrimitivesLibrary().getCell("FDRE"));
origNetlist.getHDIPrimitivesLibrary().addCell(ff.getCellType());
EDIFCell fdre = new EDIFCell(Design.getUnisimCell(Unisim.FDRE));
EDIFLibrary hdi = origNetlist.getHDIPrimitivesLibrary();
hdi.addCell(fdre);
EDIFCellInst ff = top.createChildCellInst("ff", fdre);

String portName = "unfortunate_name";

Expand Down Expand Up @@ -456,8 +458,10 @@ public void testBussedPortReNamingCollision(@TempDir Path path) {

EDIFCell top = origNetlist.getTopCell();

EDIFCellInst ff = top.createChildCellInst("ff", Design.getPrimitivesLibrary().getCell("FDRE"));
origNetlist.getHDIPrimitivesLibrary().addCell(ff.getCellType());
EDIFCell fdre = new EDIFCell(Design.getUnisimCell(Unisim.FDRE));
EDIFLibrary hdi = origNetlist.getHDIPrimitivesLibrary();
hdi.addCell(fdre);
EDIFCellInst ff = top.createChildCellInst("ff", fdre);

String portName = "unfortunate_name";

Expand Down
Loading