Skip to content

Conversation

AmirhosseinPoolad
Copy link
Contributor

Adds a static_assert to make sure the three undefined value constants are all equal to -1.

@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels Sep 9, 2025
Copy link
Contributor

@AlexandreSinger AlexandreSinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one small comment.

#include "arch_types.h"
#include "librrgraph_types.h"

// Make sure the 'unkown value' constants in VPR, LibArchFPGA and LibRRGraph are all equal to the same value (-1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"unkown" -> "unknown"

Also I think you add a bit on why. Just something simple like "these should be equal since they are sometimes intermixed by mistake".

@AmirhosseinPoolad AmirhosseinPoolad merged commit a543f21 into master Sep 9, 2025
30 checks passed
@AmirhosseinPoolad AmirhosseinPoolad deleted the unknown_const_assert branch September 9, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-cpp C/C++ code VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants