Skip to content

Commit

Permalink
Grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Mar 26, 2023
1 parent 8b9dfe5 commit 2d76f6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/dev_notes/Validation Needed
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ X Illegal property references:
next
is this ever illegal?

X If a node ispresent=true, and any of it's properties are a reference,
X If a node ispresent=true, and any of its properties are a reference,
then those references' ispresent shall also be true
This is an explicit clause in the spec: 5.3.1-i

Expand Down
2 changes: 1 addition & 1 deletion docs/udps/read_buffering.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enabled by compiling the following file along with your design:
``buffer_reads``
* Assigned value is a boolean.
* If true, enables double-buffering of software reads of this register.
* The read buffer will load the register's field values when it's trigger
* The read buffer will load the register's field values when its trigger
event is asserted.
* Unless specified otherwise, the buffer trigger occurs when the lowest
address of the buffered register is read.
Expand Down
4 changes: 2 additions & 2 deletions src/peakrdl_regblock/udps/rw_buffering.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def validate(self, node: Node, value: Any) -> None:
# Trigger can reference a vector, but only if it is a single-bit
if value.width != 1:
self.msg.error(
"%s '%s' references %s '%s' but it's width is not 1"
"%s '%s' references %s '%s' but its width is not 1"
% (
type(node.inst).__name__.lower(), node.inst_name,
type(value.inst).__name__.lower(), value.inst_name
Expand All @@ -42,7 +42,7 @@ def validate(self, node: Node, value: Any) -> None:
# Trigger can reference a property, but only if it is a single-bit
if value.width != 1:
self.msg.error(
"%s '%s' references property '%s->%s' but it's width is not 1"
"%s '%s' references property '%s->%s' but its width is not 1"
% (
type(node.inst).__name__.lower(), node.inst_name,
value.node.inst_name, value.name,
Expand Down

0 comments on commit 2d76f6d

Please sign in to comment.