Skip to content

Commit

Permalink
Added some keep attributes and mask register
Browse files Browse the repository at this point in the history
  • Loading branch information
dawoodalnajjar committed Oct 10, 2023
1 parent 91d5cd2 commit 216ae8e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LCLS-II/core/rtl/GthRxAlignCheck.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 10 additions & 0 deletions python/LclsTimingCore/GthRxAlignCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 216ae8e

Please sign in to comment.