From 6a550abc69031c529bdef5f74100d01ca8480e4d Mon Sep 17 00:00:00 2001 From: Alex Mykyta Date: Fri, 5 Jan 2024 19:57:47 -0800 Subject: [PATCH] Fix accidental blocking assignment in always_ff for read buffering storage elements --- docs/index.rst | 2 +- .../read_buffering/implementation_generator.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 3cca0ce..c0f773c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -33,7 +33,7 @@ Install from `PyPi`_ using pip Example ------- -The easiest way is to use the `PeakRDL command line tool `_: +The easiest way to use PeakRDL-regblock is via the `PeakRDL command line tool `_: .. code-block:: bash diff --git a/src/peakrdl_regblock/read_buffering/implementation_generator.py b/src/peakrdl_regblock/read_buffering/implementation_generator.py index 8d59cd2..ea36d8b 100644 --- a/src/peakrdl_regblock/read_buffering/implementation_generator.py +++ b/src/peakrdl_regblock/read_buffering/implementation_generator.py @@ -41,19 +41,19 @@ class RBufLogicGenerator(RDLForLoopGenerator): for field in node.fields(): if bidx < field.low: # zero padding before field - s.append(f"{data}[{field.low-1}:{bidx}] = '0;") + s.append(f"{data}[{field.low-1}:{bidx}] <= '0;") value = self.exp.dereferencer.get_value(field) if field.msb < field.lsb: # Field gets bitswapped since it is in [low:high] orientation value = f"{{<<{{{value}}}}}" - s.append(f"{data}[{field.high}:{field.low}] = {value};") + s.append(f"{data}[{field.high}:{field.low}] <= {value};") bidx = field.high + 1 regwidth = node.get_property('regwidth') if bidx < regwidth: # zero padding after last field - s.append(f"{data}[{regwidth-1}:{bidx}] = '0;") + s.append(f"{data}[{regwidth-1}:{bidx}] <= '0;") return "\n".join(s)