uvx format

This commit is contained in:
Arnav Sacheti
2025-10-13 20:14:46 -07:00
parent 3eee8b9cdd
commit 54a199ca9c
17 changed files with 307 additions and 205 deletions

View File

@@ -49,9 +49,7 @@ class DesignValidator(RDLListener):
if isinstance(value, PropertyReference):
src_ref = value.src_ref
else:
src_ref = node.inst.property_src_ref.get(
prop_name, node.inst.inst_src_ref
)
src_ref = node.inst.property_src_ref.get(prop_name, node.inst.inst_src_ref)
self.msg.error(
"Property is assigned a reference that points to a component not internal to the busdecoder being exported.",
src_ref,
@@ -125,9 +123,9 @@ class DesignValidator(RDLListener):
def enter_Field(self, node: "FieldNode") -> None:
parent_accesswidth = node.parent.get_property("accesswidth")
parent_regwidth = node.parent.get_property("regwidth")
if (parent_accesswidth < parent_regwidth) and (
node.lsb // parent_accesswidth
) != (node.msb // parent_accesswidth):
if (parent_accesswidth < parent_regwidth) and (node.lsb // parent_accesswidth) != (
node.msb // parent_accesswidth
):
# field spans multiple sub-words
if node.is_sw_writable and not node.parent.get_property("buffer_writes"):
@@ -141,9 +139,7 @@ class DesignValidator(RDLListener):
node.inst.inst_src_ref,
)
if node.get_property("onread") is not None and not node.parent.get_property(
"buffer_reads"
):
if node.get_property("onread") is not None and not node.parent.get_property("buffer_reads"):
# ... is modified by an onread action without the atomicity of read buffering
# Enforce 10.6.1-f
self.msg.error(