What's the design checkpoint in the example bitstream manipulation code? #452
-
In the example bitstream manipulation code, provided in the document. There are two inputs, one is checkpoint, and the other is bitstream. My questions are:
Thank you, Yu. public static void main(String[] args) {
Design design = Design.readCheckpoint(args[0]);
Bitstream bitstream = Bitstream.readBitstream(args[1]);
ConfigArray configArray = bitstream.configureArray();
// Changes the initialization of the FF to 1
Cell cell = design.getCell("myFF");
cell.getProperty("INIT").setValue("1");
configArray.updateUserStateBits(cell);
bitstream.updatePacketsFromConfigArray();
design.writeCheckpoint(args[2]);
bitstream.writeBitstream(args[3]);
} |
Beta Was this translation helpful? Give feedback.
Answered by
clavin-xlnx
Jun 7, 2022
Replies: 1 comment
-
Hi Yu, To answer your questions, yes, RapidWright will need a placed and routed DCP as input in order to know the location of the cell being updated. You'll want the same DCP used to create the original bitstream. These APIs are meant to make incremental changes to an existing bitstream. It can't create a functional bitstream from scratch. Chris |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yu-zou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Yu,
To answer your questions, yes, RapidWright will need a placed and routed DCP as input in order to know the location of the cell being updated. You'll want the same DCP used to create the original bitstream. These APIs are meant to make incremental changes to an existing bitstream. It can't create a functional bitstream from scratch.
Chris