Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OneWare.GhdlExtension.ViewModels;

public class GhdlSimulatorToolbarViewModel(TestBenchContext context, IFpgaSimulator simulator) : ObservableObject

Check warning on line 10 in src/OneWare.GhdlExtension/ViewModels/GhdlSimulatorToolbarViewModel.cs

View workflow job for this annotation

GitHub Actions / build

Parameter 'simulator' is unread.

Check warning on line 10 in src/OneWare.GhdlExtension/ViewModels/GhdlSimulatorToolbarViewModel.cs

View workflow job for this annotation

GitHub Actions / build

Parameter 'simulator' is unread.
{
public string SimulationStopTime
{
Expand Down Expand Up @@ -89,4 +89,25 @@
}
}

public string GtkwSaveFile
{
get => context.GetBenchProperty(nameof(GtkwSaveFile)) ?? "";
set
{
if (string.IsNullOrWhiteSpace(value)) context.RemoveBenchProperty(nameof(GtkwSaveFile));
else context.SetBenchProperty(nameof(GtkwSaveFile), value);
OnPropertyChanged();
}
}

public string GtkwWaveArgs
{
get => context.GetBenchProperty(nameof(GtkwWaveArgs)) ?? "";
set
{
if (string.IsNullOrWhiteSpace(value)) context.RemoveBenchProperty(nameof(GtkwWaveArgs));
else context.SetBenchProperty(nameof(GtkwWaveArgs), value);
OnPropertyChanged();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
<TextBlock Text="Additional GHDL Simulation Options"/>
<TextBox Text="{Binding AdditionalGhdlSimOptions}" />
</StackPanel>
<StackPanel Orientation="Vertical" Spacing="2">
<TextBlock Text="GTKWave Save File"/>
<TextBox Text="{Binding GtkwSaveFile}" />
</StackPanel>
<StackPanel Orientation="Vertical" Spacing="2">
<TextBlock Text="Additional GTKWave Arguments"/>
<TextBox Text="{Binding GtkwWaveArgs}" />
</StackPanel>
</StackPanel>
</Flyout>
</Button.Flyout>
Expand Down
Loading