Skip to content

Bump VTR to cbd037c and port to its routing netlist, pin lookup and delay interfaces - #2924

Open
amin1377 wants to merge 13 commits into
masterfrom
update_vtr_2026_12_02
Open

amin1377 wants to merge 13 commits into
masterfrom
update_vtr_2026_12_02

Conversation

@amin1377

@amin1377 amin1377 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Bump vtr-verilog-to-routing from 0b91233 to cbd037c and port OpenFPGA to the new VTR interfaces.

  • Repack, pb graph, delay and SDC writer changes carried over from Bump VTR to 42d5c0c and port to its pb graph, repack and delay interfaces #2878.
  • Pass a RoutingNetlist to the net delay loader and AnalysisDelayCalculator.
  • Read block locations from block_locs() and use t_logical_block_type::pb_graph_pins() in repack.
  • Drop FPGA interchange support, which VTR removed.
  • Set --seed 2 for hetero_fabric_tile_clkntwk, which is unroutable at channel width 80 with the default seed.
  • Update the no_time_stamp golden outputs; the new packer uses different LUT input pins for and2.
  • Fix grid output pins placed on several sides (e.g. I/O pads with perimeter_cb): only one side was driven in the netlist and the others floated.

Supersedes #2878.

VTR now declares the logic-block routing node type as
'enum class e_lb_rr_type' in vpr/src/pack/lb_type_rr_graph.h, so the bare
LB_SOURCE, LB_SINK and LB_INTERMEDIATE names no longer exist and the old
header that declared them is gone. The repack code includes the new
header, uses the scoped names, and casts the type to size_t where it
indexes a table.
Since VTR's switch min/max delay change, AnalysisDelayCalculator takes a
minimum and a maximum net delay matrix, filled by the two-matrix
load_net_delay_from_routing(), as vpr_analysis() does. The clock frequency
annotation of the simulation settings loads both.
VTR changed three interfaces OpenFPGA reads:

- t_pb_graph_node keeps its pins in one array and exposes each port's
  pins as spans, pins_by_input_port, pins_by_output_port and
  pins_by_clock_port, in place of the input_pins, output_pins and
  clock_pins arrays.
- t_pb_graph_edge connects exactly one input pin to one output pin,
  read through input_pin() and output_pin(); the loops over an edge's
  pins become a single lookup, and the assertion that an edge has one
  output pin is dropped as the type now guarantees it.
- t_rr_switch_inf has Tdel_min and Tdel_max in place of Tdel; the SDC
  writer's switch delay uses Tdel_max, the delay it used before.
…iter

VTR now stores pb graph child nodes in nested vectors instead of raw
arrays, so take the address of instance 0 when selecting the logical
primitive node for LUT and memory timing constraints.
VTR no longer provides read_interchange_netlist.h or the VPR_ENABLE_INTERCHANGE option.
get_block_loc() now takes a RoutingNetlist and RoutingBlockId; the clustered block location is available directly from block_locs().
VTR removed alloc_and_load_pb_graph_pin_lookup_from_index(); t_logical_block_type::pb_graph_pins() provides the same index-to-pin mapping.
The new packer maps the and2 LUT onto different input pins, which changes the SDC, bitstream and formal verification netlist outputs.
When an output pin is placed on several sides of a grid (e.g. I/O pads
with perimeter_cb), a separate net was created for each side, all sourced
by the same child pin. The module manager keeps only the last net per
source pin, so only one side's grid port was driven and the others were
left floating in the netlist. Signals routed through those sides never
reached the fabric, e.g. clk_cond_i in
homo_1clock_1reset_2layer_ckbuf_intermediate_driver.

Use a single net per output pin with one sink per side. Update the
perimeter_cb golden netlists accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant