From f401f816182523b1fe0c508cec0a7be4b346f80c Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Fri, 5 Mar 2021 20:43:22 +0100
Subject: [PATCH] Added radix: char for strings.

---
 .../unb2b_board/unb2b_board.peripheral.yaml          | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/boards/uniboard2b/libraries/unb2b_board/unb2b_board.peripheral.yaml b/boards/uniboard2b/libraries/unb2b_board/unb2b_board.peripheral.yaml
index 67d84df36e..f458a6c1d7 100644
--- a/boards/uniboard2b/libraries/unb2b_board/unb2b_board.peripheral.yaml
+++ b/boards/uniboard2b/libraries/unb2b_board/unb2b_board.peripheral.yaml
@@ -35,6 +35,7 @@ peripherals:
               access_mode: RO
               address_offset: 0x0
               number_of_fields: 8192   # c_rom_addr_w in mms_unb2b_board_system_info
+              radix: char
 
       # MM port for mms_unb2b_board_system_info.vhd / unb2b_board_system_info_reg.vhd
       - slave_name: PIO_SYSTEM_INFO
@@ -102,12 +103,7 @@ peripherals:
               access_mode: RO
               address_offset: 0x8
               number_of_fields: 13
-          #- - field_name: design_name
-          #    field_description: "FPGA FW design name string."
-          #    width: 416  # = 13 * 32b = 52 char          # EK: TODO width > 32 is allowed
-          #    access_mode: RO
-          #    address_offset: 0x8
-          #    number_of_fields: 1
+              radix: char
           - - field_name: stamp_date
               field_description: "FPGA FW compile date string."
               access_mode: RO
@@ -123,11 +119,13 @@ peripherals:
               access_mode: RO
               address_offset: 0x44
               number_of_fields: 3
+              radix: hexadecimal
           - - field_name: design_note
               field_description: "FPGA FW design note string."
               access_mode: RO
               address_offset: 0x50
-              number_of_fields: 13              
+              number_of_fields: 13
+              radix: char
               
   - peripheral_name: wdi  # pi_wdi.py
     peripheral_description: ""
-- 
GitLab