From 216ae8eb04bff011f7fc18a45e7e1e16e972b602 Mon Sep 17 00:00:00 2001 From: Dawood Alnajjar Date: Tue, 10 Oct 2023 11:09:51 -0700 Subject: [PATCH] Added some keep attributes and mask register --- LCLS-II/core/rtl/GthRxAlignCheck.vhd | 10 +++++----- python/LclsTimingCore/GthRxAlignCheck.py | 10 ++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/LCLS-II/core/rtl/GthRxAlignCheck.vhd b/LCLS-II/core/rtl/GthRxAlignCheck.vhd index b97737a0..bcc862a9 100644 --- a/LCLS-II/core/rtl/GthRxAlignCheck.vhd +++ b/LCLS-II/core/rtl/GthRxAlignCheck.vhd @@ -109,11 +109,11 @@ architecture rtl of GthRxAlignCheck is signal txClkFreq : slv(31 downto 0); signal rxClkFreq : slv(31 downto 0); - -- attribute dont_touch : string; - -- attribute dont_touch of r : signal is "TRUE"; - -- attribute dont_touch of ack : signal is "TRUE"; - -- attribute dont_touch of txClkFreq : signal is "TRUE"; - -- attribute dont_touch of rxClkFreq : signal is "TRUE"; + attribute keep : string; + attribute keep of r : signal is "TRUE"; + attribute keep of ack : signal is "TRUE"; + attribute keep of resetErr : signal is "TRUE"; + attribute keep of resetDone : signal is "TRUE"; begin diff --git a/python/LclsTimingCore/GthRxAlignCheck.py b/python/LclsTimingCore/GthRxAlignCheck.py index 9fae0a4a..51b45617 100644 --- a/python/LclsTimingCore/GthRxAlignCheck.py +++ b/python/LclsTimingCore/GthRxAlignCheck.py @@ -61,6 +61,16 @@ def __init__( self, mode = "RW", )) + + self.add(pr.RemoteVariable( + name = "Mask", + description = "Mask", + offset = 0x100, + bitSize = 7, + bitOffset = 8, + mode = "RW", + )) + self.add(pr.RemoteVariable( name = "ResetLen", description = "Reset length",