Skip to content

Commit

Permalink
Coverage improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Nov 9, 2022
1 parent fcfd5c0 commit 232faba
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
4 changes: 1 addition & 3 deletions docs/props/reg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ Register Properties

accesswidth
-----------
|NO|

Only ``accesswidth`` that is equal to the ``regwidth`` is supported (default if unset)
|OK|

regwidth
--------
Expand Down
32 changes: 20 additions & 12 deletions docs/props/rhs_props.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Field

field -> swacc
^^^^^^^^^^^^^^
|EX|
|OK|

Single-cycle strobe that indicates the field is being accessed by software
(read or write).


field -> swmod
^^^^^^^^^^^^^^^
|EX|
|OK|

Single-cycle strobe that indicates the field is being modified during a software
access operation.
Expand All @@ -43,7 +43,7 @@ Represents the signal that controls the field's swwe/swwel behavior.

field -> anded/ored/xored
^^^^^^^^^^^^^^^^^^^^^^^^^
|EX|
|OK|

Represents the current and/or/xor reduction of the field's value.

Expand All @@ -57,7 +57,7 @@ Represents the signal that controls the field's hwclr/hwset behavior.

field -> hwenable/hwmask
^^^^^^^^^^^^^^^^^^^^^^^^
|EX|
|OK|

Represents the signal that controls the field's hwenable/hwmask behavior.

Expand Down Expand Up @@ -86,7 +86,7 @@ Field Counter Properties

field -> incr
^^^^^^^^^^^^^
|EX|
|OK|

Represents the signal that controls the field's counter increment control.

Expand Down Expand Up @@ -121,7 +121,7 @@ exceeded its incrthreshold.

field -> incrvalue
^^^^^^^^^^^^^^^^^^
|EX|
|OK|

Represents the value that was assigned to this property.

Expand All @@ -133,7 +133,7 @@ Represents the event signal that is asserted when the counter is about to wrap.

field -> decr
^^^^^^^^^^^^^
|EX|
|OK|

Represents the signal that controls the field's counter decrement control.

Expand Down Expand Up @@ -167,7 +167,7 @@ exceeded its incrthreshold.

field -> decrvalue
^^^^^^^^^^^^^^^^^^
|EX|
|OK|

Represents the value that was assigned to this property.

Expand All @@ -184,19 +184,27 @@ Field Interrupt Properties

field -> enable
^^^^^^^^^^^^^^^
|EX|
|OK|

Represents the value that was assigned to this property.

field -> mask
^^^^^^^^^^^^^
|EX|
|OK|

Represents the value that was assigned to this property.

field -> haltenable
^^^^^^^^^^^^^^^^^^^
|EX|
|OK|

Represents the value that was assigned to this property.

field -> haltmask
^^^^^^^^^^^^^^^^^
|EX|
|OK|

Represents the value that was assigned to this property.


--------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions tests/test_counter_basics/regblock.rdl
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ addrmap top {
updown2->decr = do_count_down;
updown3->incr = do_count_up;
updown3->decr = do_count_down;
updown4->incr = do_count_up;
updown4->decr = do_count_down;
updown4->incr = updown3->incr;
updown4->decr = updown3->decr;
} simple @ 0x0;


Expand Down
4 changes: 2 additions & 2 deletions tests/test_counter_saturate/regblock.rdl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ addrmap top {
count->decr = decrement;
count->hwclr = clear;
count->hwset = set;
count->incrvalue = step;
count->decrvalue = step;
count->incrvalue = count->decrvalue;
} saturate_via_const @ 0x4;


Expand All @@ -72,7 +72,7 @@ addrmap top {
count->hwclr = clear;
count->hwset = set;
count->incrvalue = step;
count->decrvalue = step;
count->decrvalue = count->incrvalue;
} saturate_via_ref @ 0x8;

reg {
Expand Down

0 comments on commit 232faba

Please sign in to comment.