Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hier connect with test #6413

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

andyfox-rushc
Copy link
Contributor

@andyfox-rushc andyfox-rushc commented Dec 22, 2024

This pull request includes a C++ test case which builds a multiple level hierarchical design and exercises the creation of a hierarchical connection. This involved adding a cpp directory to the dbSta/test area. The main contribution of this pull request is a c++ level creation of a hierarchical test case.
Also included is a bug fix to the construction of the hierarchy extraction (getParentHierarchy) code which was causing a seg fault.
Ready for review.

andyfox-rushc and others added 8 commits December 12, 2024 18:55
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
…mode

Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Comment on lines 128 to 130
for (dbSet<dbModBTerm>::iterator mod_bterm_iter = module_ports.begin();
mod_bterm_iter != module_ports.end();
mod_bterm_iter++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: use range-based for loop instead [modernize-loop-convert]

Suggested change
for (dbSet<dbModBTerm>::iterator mod_bterm_iter = module_ports.begin();
mod_bterm_iter != module_ports.end();
mod_bterm_iter++) {
for (auto module_port : module_ports) {

src/dbSta/test/cpp/TestHconn.cpp:130:

-       dbModBTerm* module_port = *mod_bterm_iter;
-       sprintf(
+       sprintf(

Comment on lines 151 to 153
for (dbSet<dbModInst>::iterator mod_inst_iter = module_instances.begin();
mod_inst_iter != module_instances.end();
mod_inst_iter++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: use range-based for loop instead [modernize-loop-convert]

Suggested change
for (dbSet<dbModInst>::iterator mod_inst_iter = module_instances.begin();
mod_inst_iter != module_instances.end();
mod_inst_iter++) {
for (auto module_inst : module_instances) {

src/dbSta/test/cpp/TestHconn.cpp:153:

-       dbModInst* module_inst = *mod_inst_iter;
-       sprintf(tmp_str, "\t\tMod inst %s ", module_inst->getName());
+       sprintf(tmp_str, "\t\tMod inst %s ", module_inst->getName());

Comment on lines 215 to 217
for (dbSet<dbModNet>::iterator mod_net_iter = mod_nets.begin();
mod_net_iter != mod_nets.end();
mod_net_iter++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: use range-based for loop instead [modernize-loop-convert]

Suggested change
for (dbSet<dbModNet>::iterator mod_net_iter = mod_nets.begin();
mod_net_iter != mod_nets.end();
mod_net_iter++) {
for (auto mod_net : mod_nets) {

src/dbSta/test/cpp/TestHconn.cpp:217:

-       dbModNet* mod_net = *mod_net_iter;
-       sprintf(
+       sprintf(

@andyfox-rushc andyfox-rushc marked this pull request as draft December 22, 2024 20:37
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@andyfox-rushc andyfox-rushc marked this pull request as ready for review December 24, 2024 01:11
…m on modnet

Signed-off-by: andyfox-rushc <andy@rushc.com>
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant