Skip to content

Commit

Permalink
Adjusted the write register map function to allow for signed inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajn96 committed Sep 30, 2022
1 parent 3a4ff67 commit 68c2b24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TopGUI_RegisterForm.vb
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ Partial Class TopGUI
Dim fileBrowseResult As DialogResult
Dim loadPath As String
Dim writeRegs As New List(Of RegClass)
Dim writeVals As New List(Of UInteger)
Dim writeVals As New List(Of Integer)
fileBrowser.Title = "Please Select the Register Dump File"
fileBrowser.Filter = "Register Dump Files|*.csv"
fileBrowseResult = fileBrowser.ShowDialog()
Expand All @@ -505,7 +505,7 @@ Partial Class TopGUI
'if readable then add value
If reg.IsWriteable Then
writeRegs.Add(reg)
writeVals.Add(Convert.ToUInt32(regLine(3)))
writeVals.Add(Convert.ToInt32(regLine(3)))
End If
Catch ex As Exception
If MessageBox.Show("Error Parsing CSV file! Continue?", "Error", MessageBoxButtons.OKCancel) <> DialogResult.OK Then
Expand All @@ -517,7 +517,7 @@ Partial Class TopGUI
csvReader.Close()

'apply data to DUT
Dut.WriteUnsigned(writeRegs, writeVals)
Dut.WriteSigned(writeRegs, writeVals)

'check if exceptions occurred
ValidateAutomotiveSpiData()
Expand Down

0 comments on commit 68c2b24

Please sign in to comment.