Skip to content

Commit

Permalink
Add more significant digits to clock frequency displays
Browse files Browse the repository at this point in the history
  • Loading branch information
bengineerd committed Oct 11, 2024
1 parent 27b58e0 commit 97153ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/surf/protocols/pgp/_Pgp2fcAxi.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def convtMHz(var, read):
name = "RxClkFreq",
mode = "RO",
units = "MHz",
disp = '{:0.2f}',
disp = '{:0.6f}',
dependencies = [self.RxClkFreqRaw],
linkedGet = convtMHz,
))
Expand All @@ -434,7 +434,7 @@ def convtMHz(var, read):
name = "TxClkFreq",
mode = "RO",
units = "MHz",
disp = '{:0.2f}',
disp = '{:0.6f}',
dependencies = [self.TxClkFreqRaw],
linkedGet = convtMHz,
))
Expand Down
4 changes: 2 additions & 2 deletions python/surf/xilinx/_GtRxAlignCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__( self,
mode = 'RO',
dependencies = [self.TxClkFreqRaw],
linkedGet = lambda read: self.TxClkFreqRaw.get(read=read) * 1.0e-6,
disp = '{:0.3f}',
disp = '{:0.6f}',
))

self.add(pr.RemoteVariable(
Expand All @@ -98,7 +98,7 @@ def __init__( self,
mode = 'RO',
dependencies = [self.RxClkFreqRaw],
linkedGet = lambda read: self.RxClkFreqRaw.get(read=read) * 1.0e-6,
disp = '{:0.3f}',
disp = '{:0.6f}',
))

self.add(pr.RemoteVariable(
Expand Down

0 comments on commit 97153ee

Please sign in to comment.