Skip to content

Commit

Permalink
updating typeStr for Fixed/UFixed to match AMD naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Mar 27, 2024
1 parent ae85473 commit 303f535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyrogue/_Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ class Fixed(Model):

def __init__(self, bitSize, binPoint):
super().__init__(bitSize,binPoint)
self.name = f'Fixed_{self.bitSize-self.binPoint-1}_{self.binPoint}'
self.name = f'Fixed_{self.bitSize}_{self.binPoint}'
self.ndType = np.dtype(np.float64)

class UFixed(Model):
Expand All @@ -721,5 +721,5 @@ class UFixed(Model):

def __init__(self, bitSize, binPoint):
super().__init__(bitSize,binPoint)
self.name = f'UFixed_{self.bitSize-self.binPoint-1}_{self.binPoint}'
self.name = f'UFixed_{self.bitSize}_{self.binPoint}'
self.ndType = np.dtype(np.float64)

0 comments on commit 303f535

Please sign in to comment.