From 4fb42df8de215fb3f134d658c44a603cb6bb82cf Mon Sep 17 00:00:00 2001
From: Romain Broucquart <romain.broucquart@synchrotron-soleil.fr>
Date: Thu, 2 Feb 2023 13:16:31 +0100
Subject: [PATCH] fix:Give fixed address for table

* Or else DESYRDL gives only 9 bits to the decoder, which collides with
the 8 bits address of the table (counted from the 2nd lesser bit)
---
 rdl/combpm.rdl | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/rdl/combpm.rdl b/rdl/combpm.rdl
index b9e2bfa..aef838c 100644
--- a/rdl/combpm.rdl
+++ b/rdl/combpm.rdl
@@ -1,21 +1,18 @@
 `include "combpm.vh" // Auto generated from FWK
 
 addrmap combpm {
-
-    desyrdl_generate_hdl = true;
-    desyrdl_interface = "AXI4L";
-
     name="BPM protocol decoder controller";
+    desyrdl_interface = "AXI4L";
 
     reg {
         desc="Module identifier.";
         field {hw=w;sw=r;} data[32];
-    } ID;
+    } ID @0x00;
 
     reg {
         desc="Module version.";
         field {hw=w;sw=r;} data[32];
-    } VERSION;
+    } VERSION @0x04;
 
     reg {
         desc="SFP module status";
@@ -113,6 +110,6 @@ addrmap combpm {
         desc = "BPM filter table";
         memwidth = 8;
         mementries = 2**`C_W_ADDR_TABLE;
-    } TABLE;
+    } TABLE @0x200;
 
 };
-- 
GitLab