Skip to content

Commit 86fc164

Browse files
acomodikmurray
authored andcommitted
clock net aliases: added comment
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent d6d2767 commit 86fc164

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

vpr/src/timing/read_sdc.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,17 @@ class SdcParseCallback : public sdcparse::Callback {
914914
for (tatum::DomainId domain : tc_.clock_domains()) {
915915
const auto& clock_name = tc_.clock_domain_name(domain);
916916

917+
// Clock net aliases are built when reading the input circuit file.
918+
// These aliases represent only real clock net names.
919+
//
920+
// If the SDC contains virtual clocks, the name of these does not
921+
// appear in the net aliases data structure, therefore there is no
922+
// need to iterate through the vector and a direct regex match can
923+
// be applied.
924+
//
925+
// Furthermore, a virtual clock name would cause an error as there
926+
// is no net associated with that when getting the net aliases from
927+
// the netlist.
917928
if (tc_.is_virtual_clock(domain)) {
918929
if (std::regex_match(clock_name, clock_regex)) {
919930
found = true;

0 commit comments

Comments
 (0)