From 50f611c0ce3173726c5a6e34e4813acc70394a55 Mon Sep 17 00:00:00 2001
From: donker <donker@astron.nl>
Date: Mon, 6 Jul 2020 16:31:01 +0200
Subject: [PATCH] add fields to yaml file

---
 .../designs/unb2b_minimal/unb2b_minimal.fpga.yaml     |  5 +++--
 .../libraries/unb2b_board/unb2b_board.peripheral.yaml | 11 +++++++++++
 libraries/io/epcs/epcs.peripheral.yaml                |  7 +++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/boards/uniboard2b/designs/unb2b_minimal/unb2b_minimal.fpga.yaml b/boards/uniboard2b/designs/unb2b_minimal/unb2b_minimal.fpga.yaml
index b41d39478e..2392b58d94 100644
--- a/boards/uniboard2b/designs/unb2b_minimal/unb2b_minimal.fpga.yaml
+++ b/boards/uniboard2b/designs/unb2b_minimal/unb2b_minimal.fpga.yaml
@@ -17,13 +17,14 @@ peripherals:
       - reg_unb_pmbus
       - reg_fpga_temp_sens
       - reg_fpga_voltage_sens
+      - ram_scrap
     parameter_overrides:
       - { name : g_sim,       value: FALSE }
       - { name : g_clk_freq,  value: 125E6 }
       - { name : g_temp_high, value: 85 }
 
-    #lock_base_address: 0x0
-    #lock_base_address: 0x4000
+    lock_base_address: 0x0
+    lock_base_address: 0x4000
 
   - peripheral_name: eth/eth1g
     slave_port_names:
diff --git a/boards/uniboard2b/libraries/unb2b_board/unb2b_board.peripheral.yaml b/boards/uniboard2b/libraries/unb2b_board/unb2b_board.peripheral.yaml
index c8f683d563..f35b18a1d0 100644
--- a/boards/uniboard2b/libraries/unb2b_board/unb2b_board.peripheral.yaml
+++ b/boards/uniboard2b/libraries/unb2b_board/unb2b_board.peripheral.yaml
@@ -109,5 +109,16 @@ peripherals:
               field_description: ""
         slave_description:  " "
 
+      - slave_name   : scrap_ram
+        slave_type   : RAM
+        fields:
+          - - field_name: data 
+              width     : 32
+              access_mode: RW
+              address_offset: 0x00
+              number_of_fields: 128
+              field_description: " "
+        slave_description: " "
+
     peripheral_description: |
         "
\ No newline at end of file
diff --git a/libraries/io/epcs/epcs.peripheral.yaml b/libraries/io/epcs/epcs.peripheral.yaml
index c0bea5651c..9ce94d85ab 100644
--- a/libraries/io/epcs/epcs.peripheral.yaml
+++ b/libraries/io/epcs/epcs.peripheral.yaml
@@ -57,6 +57,13 @@ peripherals:
               address_offset: 0x14
               field_description: " busy "
 
+          - - field_name    : unprotect
+              width         : 32
+              access_mode   : WO
+              address_offset: 0x18
+              field_description: " passphrase to unprotect address range "
+
+
         slave_description:  " Read and write access to flash "
 
       # actual hdl name: mms_dp_fifo_to_mm
-- 
GitLab