How can i store all the LUT and leaf cells used to implement a design in to a text file ? #456
Replies: 2 comments 14 replies
-
Sure, here is some example code that loads in one of our test DCPs and write outs a text file: package com.xilinx.rapidwright.examples;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import com.xilinx.rapidwright.design.Cell;
import com.xilinx.rapidwright.design.Design;
public class WriteLUTInfoToFile {
public static void main(String[] args) throws IOException {
Design d = Design.readCheckpoint("test/RapidWrightDCP/bnn.dcp");
try(BufferedWriter bw = new BufferedWriter(new FileWriter("lutInfo.txt"))){
for(Cell c : d.getCells()) {
if(!c.getBEL().isLUT()) continue;
bw.write(c.getName() + " " + c.getSiteName() + "/" + c.getBELName() + " " + c.getType() + "\n");
}
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. I am new to this environment and little confused i hope you can help me out here. I did automatic install setup and got the IDE as shown in below screen shot. My goal is to take a post implementation design check point file from Vivado and get all the slices used by the design into a text file. The FPGA i am using is kc705 (xc7k325ffg900). What should i do after installation ? I see there are couple of IDEs do i need them but i already have Vivado. Is there any example you can provide which is similar to my task. Any help is much appreciated. Thank you |
Beta Was this translation helpful? Give feedback.
-
I have a design check point file post implementation in Vivado holding the LUT information. I want to save theat information in to text file. The text file should have information like the name of the LUT the slice of the FPGA etc. Is it possible to do using rapid write ?.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions