odb: adding support for persistent DFT structures
This is a basic set of structs to support scan chains and scan cells in odb.
Also, bumping the db_schema_minor to 79.
Hi @maliberty , this is a big PR but it is mostly code generated by the code generator script.
Thanks!
I see many resolved comments but not the usual clang-tidy thumbs-up. Is there something not yet resolved?
I see many resolved comments but not the usual clang-tidy thumbs-up. Is there something not yet resolved?
Yeah, most of them are in code that I am keeping the already existing style:
Or something that I already fixed (I was missing a header):
Other seems to be false positive (I don't think this is a temporal object):
As well as this one too (std::always_false_v is used in a constexpr code so it is not in the final binary):
Does that makes sense?
Thanks for the clang-tidy info. I find its static analysis to not be very good and keep considering disabling it completely as it has a high false positive rate.
Hi @maliberty, I think this is ready for another look, thanks!
#4617 and this PR are about to contend on the db schema. Would you be ok if that one goes first and you take the merge?
#4617 and this PR are about to contend on the db schema. Would you be ok if that one goes first and you take the merge?
Sure, no problem! Thanks!
Hi @maliberty , rebased the change. Had to force push the bump of the schema version but should be good to go. Thanks!
ready for review or still working?
ready for review or still working?
Yep, ready for review :). The git history is a mess in this PR so let me know before merging so I can clean it up a little bit. Thanks!
It would be good to have descriptive comments for the new classes in db.h
hi @maliberty,
It would be good to have descriptive comments for the new classes in db.h
Is there any way to add comments to the auto-generated classes? Thanks!
Edit: To clarify, I am asking if there is a way to add comments to the class and not to the user defined methods that I created by hand.
Can you just add the comments to db.h before the class?
No, it disappears. I see other comments for some classes there (ex: dbTechSameNetRule), but I am not sure how they are preserving those comments.
Meanwhile I am adding comment for the hand made methods.
dbTechSameNetRule is not generated
How about adding
diff --git a/src/odb/src/codeGenerator/templates/db.h b/src/odb/src/codeGenerator/templates/db.h
index 04ac32e09..6159423ef 100644
--- a/src/odb/src/codeGenerator/templates/db.h
+++ b/src/odb/src/codeGenerator/templates/db.h
@@ -5,7 +5,11 @@ class {{klass.name}};
//Generator Code End ClassDeclarations
//Generator Code Begin ClassDefinition
{% for klass in schema.classes|sort(attribute='name') %}
-
+{% if klass.description %}
+ {% for line in klass.description %}
+ // {{ line }}
+ {% endfor %}
+{% endif %}
class {{klass.name}} : public dbObject
Hi @maliberty , That makes sense! Do you want me to include that in this PR or would you send one with your code? Thanks!
You can just include it here.
DFT is a new area for me so I've been slow to get it. I think this is clear enough for me to move forward. I'm sure it will become clearer as you build out the rest of the solution.