diff --git a/src/peakrdl_regblock/field_logic/__init__.py b/src/peakrdl_regblock/field_logic/__init__.py index e6351ce..701321d 100644 --- a/src/peakrdl_regblock/field_logic/__init__.py +++ b/src/peakrdl_regblock/field_logic/__init__.py @@ -223,7 +223,7 @@ class FieldLogic: set or clear side effect). """ w_modifiable = field.is_sw_writable - r_modifiable = (field.get_property('onread') is not None) + r_modifiable = field.get_property('onread') is not None buffer_writes = field.parent.get_property('buffer_writes') buffer_reads = field.parent.get_property('buffer_reads') @@ -383,7 +383,7 @@ class FieldLogic: The returned list is sorted in priority order - the conditional with highest precedence is first in the list. """ - sw_precedence = (field.get_property('precedence') == PrecedenceType.sw) + sw_precedence = field.get_property('precedence') == PrecedenceType.sw result = [] if sw_precedence: diff --git a/tests/README.md b/tests/README.md index 15350ce..dc349d3 100644 --- a/tests/README.md +++ b/tests/README.md @@ -12,6 +12,9 @@ commands to be visible via the PATH environment variable. * Go to the *Individual Files* tab. * Download Questa files. (Don't forget part 2!) * Install +* Create an account on https://licensing.intel.com + * press "Enroll" to register + * After you confirm your email, go back to this page and press "Enroll" again to finish enrollment * Go to https://licensing.intel.com/psg/s/sales-signup-evaluationlicenses * Generate a free *Starter Edition* license file for Questa * Easiest to use a *fixed* license using your NIC ID (MAC address of your network card via `ifconfig`) diff --git a/tests/pylint.rc b/tests/pylint.rc index beaee5c..264b127 100644 --- a/tests/pylint.rc +++ b/tests/pylint.rc @@ -567,5 +567,5 @@ preferred-modules= # Exceptions that will emit a warning when being caught. Defaults to # "BaseException, Exception". -overgeneral-exceptions=BaseException, - Exception +overgeneral-exceptions=builtin.BaseException, + builtin.Exception