Skip to content
Discussion options

You must be logged in to vote

This is a great question. Typically, RapidWright relies on the pblock shape to be provided via a String. However, it is possible with a bit of work to extract it from the XDC constraints stored in the DCP. RapidWright does not have a Tcl interpreter or Tcl-specific parsing capabilities (yet). However, if the pblock specification commands are consistent, you could extract them like this:

package com.xilinx.rapidwright.examples;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

import com.xilinx.rapidwright.design.ConstraintGroup;
import com.xilinx.rapidwright.design.Design;
import com.xilinx.rapidwright.design.blocks.PBlock;

public class ExtractPBlock {

    pu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@coherent17
Comment options

Answer selected by coherent17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants