Commit ed18a78f authored by Andrey Filippov's avatar Andrey Filippov

working on tools definitions

parent dbb68380
...@@ -11,27 +11,32 @@ ...@@ -11,27 +11,32 @@
icon="newmod_wiz.gif"> icon="newmod_wiz.gif">
<menuitem name="cver" <menuitem name="cver"
label="Run CVer simulator" label="CVer simulator"
icon="cver.gif" icon="cver.gif"
call="cver"/> call="cver"/>
<menuitem name="modelsim" <menuitem name="modelsim"
label="Run ModelSIM simulator" label="ModelSIM simulator"
icon="modelsim.gif" icon="modelsim.gif"
call="ModelSIM"/> call="ModelSIM"/>
<menuitem name="xst" <menuitem name="xst"
label="Run XST (Synthesis)" label="XST (Synthesis)"
icon="xst.gif" icon="xst.gif"
call="XST"/> call="XST"/>
<menuitem name="IVerilog" <menuitem name="IVerilog"
label="Run Icarus Verilog (Simulation)" label="Icarus Verilog Simulator"
icon="iverilog.ico" icon="iverilog.ico"
call="iverilog"/> call="iverilog"/>
<menuitem name="IVerilog Debug"
label="Icarus Verilog (Debugging TSL)"
icon="iverilog.ico"
call="iverilog_dbg"/>
<menuitem name="GTKWave" <menuitem name="GTKWave"
label="Run GTKWave (Waves viewer)" label="GTKWave (Waves viewer)"
icon="gtkwave.ico" icon="gtkwave.ico"
call="iverilog"/> call="iverilog"/>
</menu> </menu>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--iverilog -Dlegacy_model -gno-specify -v -o x353mjpeg_test -sglbl -stestbench353 -y./unisims -y. x353_1.tf glbl.v--> <!--iverilog -Dlegacy_model -gno-specify -v -o x353mjpeg_test -sglbl -stestbench353
-y./unisims -y. x353_1.tf glbl.v -->
<vdt-project> <vdt-project>
<interface name="IVerilog" <interface name="IVerilog" extends="project_interface">
extends="project_interface">
<!-- Syntax definitions --> <!-- Syntax definitions -->
<syntax name="BoolParamSyntax" format="-%%ParamName"/> <syntax name="BoolParamSyntax" format="-%%ParamName" />
<syntax name="InputPatternSyntax" format= "’%%ParamValue’"/> <syntax name="InputPatternSyntax" format="’%%ParamValue’" />
<typedef name= "ModuleLibraryType" list="true"> <typedef name="ModuleLibraryType" list="true">
<paramtype kind="string" <paramtype kind="string" default="" textkind="dir"
default="" maxlength="256" sensitivity="sensitive" />
textkind="dir"
maxlength="256"
sensitivity="sensitive"/>
</typedef> </typedef>
...@@ -21,37 +18,26 @@ ...@@ -21,37 +18,26 @@
<syntax name = "D_ParamSyntax" <syntax name="D_ParamSyntax" format="-D%%ParamName" />
format = "-D%%ParamName"/> <syntax name="g_ParamSyntax" format="-g%%ParamName" />
<syntax name = "g_ParamSyntax"
format = "-g%%ParamName"/>
<typedef name="LegacyModelType"> <typedef name="LegacyModelType">
<paramtype kind="bool" <paramtype kind="bool" formatTrue="-Dlegacy_model"
formatTrue="-Dlegacy_model" formatFalse="" />
formatFalse=""/>
</typedef> </typedef>
<typedef name="NoSpecifyType"> <typedef name="NoSpecifyType">
<paramtype kind="bool" <paramtype kind="bool" formatTrue="-gno-specify"
formatTrue="-gno-specify" formatFalse="" />
formatFalse=""/>
</typedef> </typedef>
<syntax name = "QuotedFileListSyntax" <syntax name="QuotedFileListSyntax" format="--%%ParamName %(&quot;%%FileList&quot;%| %)" />
format = "--%%ParamName %(&quot;%%FileList&quot;%| %)"/> <syntax name="QuotedTopModuleSyntax" format="--%%ParamName=%%TopModule" />
<syntax name = "QuotedTopModuleSyntax" <syntax name="QuotedTopModulesSyntax" format="--%%ParamName %(&quot;%%TopModules&quot;%| %)" />
format = "--%%ParamName=%%TopModule"/> <syntax name="QuotedSourceListSyntax" format="--%%ParamName %(&quot;%%SourceList&quot;%| %)" />
<syntax name = "QuotedTopModulesSyntax" <syntax name="QuotedCurrentFileSyntax" format="--%%ParamName=&quot;%%CurrentFile&quot;" />
format = "--%%ParamName %(&quot;%%TopModules&quot;%| %)"/> <syntax name="QuotedCurrentFileBaseSyntax" format="--%%ParamName=&quot;%%CurrentFileBase&quot;" />
<syntax name = "QuotedSourceListSyntax" <syntax name="QuotedProjectNameSyntax" format="--%%ParamName=&quot;%%ProjectName&quot;" />
format = "--%%ParamName %(&quot;%%SourceList&quot;%| %)"/>
<syntax name = "QuotedCurrentFileSyntax"
format = "--%%ParamName=&quot;%%CurrentFile&quot;"/>
<syntax name = "QuotedCurrentFileBaseSyntax"
format = "--%%ParamName=&quot;%%CurrentFileBase&quot;"/>
<syntax name = "QuotedProjectNameSyntax"
format = "--%%ParamName=&quot;%%ProjectName&quot;"/>
...@@ -68,82 +54,52 @@ ...@@ -68,82 +54,52 @@
<syntax name="DbgCurrentFileSyntax" format="echo &quot;%%CurrentFile&quot; ;" /> <syntax name="DbgCurrentFileSyntax" format="echo &quot;%%CurrentFile&quot; ;" />
<syntax name="DbgChosenActionIndexSyntax" format="echo &quot;index=%%ChosenActionIndex&quot; ;" /> <syntax name="DbgChosenActionIndexSyntax" format="echo &quot;index=%%ChosenActionIndex&quot; ;" />
<syntax name="BuildStampSyntax" format="%%BuildStamp" /> <syntax name="BuildStampSyntax" format="%%BuildStamp" />
<syntax name="LogFileSyntax" format="%%BuildStamp.log" />
<syntax name="GrepSkipSyntax" format="| grep --line-buffered -v &quot;%%ParamValue&quot;" />
//
ChosenActionIndex <syntax name="GrepFindSyntax"
format="| grep --line-buffered -E &quot;%%ParamValue&quot;" />
<syntax name="GrepSkipSyntax"
format="| grep --line-buffered -v &quot;%%ParamValue&quot;" />
<syntax name="LogFileSyntax" format="| tee %%ParamName%%BuildStamp.log" />
<!-- typedef --> <!-- typedef -->
<typedef name="MyTypeList" list="true"> <typedef name="MyTypeList" list="true">
<paramtype kind="string" <paramtype kind="string" maxlength="256" sensitivity="sensitive" />
maxlength="256"
sensitivity="sensitive"/>
</typedef> </typedef>
<typedef name= "ExtraFilesType" list="true"> <typedef name="ExtraFilesType" list="true">
<paramtype kind="string" <paramtype kind="string" textkind="file" maxlength="256"
textkind="file" sensitivity="sensitive" />
maxlength="256"
sensitivity="sensitive"/>
</typedef> </typedef>
<typedef name="exeType"> <typedef name="exeType">
<paramtype kind="string" <paramtype kind="string" maxlength="256" sensitivity="sensitive"
maxlength="256" textkind="file" />
sensitivity="sensitive"
textkind="file"/>
</typedef> </typedef>
<typedef name="SwitchType"> <typedef name="SwitchType">
<paramtype kind="bool" <paramtype kind="bool" formatTrue="-%%ParamName"
formatTrue="-%%ParamName" formatFalse="" />
formatFalse=""/>
</typedef> </typedef>
<!-- <!-- <typedef name= "StringType" list="true"> <paramtype kind="string"
<typedef name= "StringType" list="true"> textkind="text" maxlength="256" sensitivity="sensitive"/> </typedef> -->
<paramtype kind="string"
textkind="text" </interface>
maxlength="256" <!-- <project name="IVerilogProject" label="iverilog project label" interface="IVerilog">
sensitivity="sensitive"/> </project> -->
</typedef> <project name="project_settings" label="Project parameters for project_settings"
-->
</interface>
<!--
<project name="IVerilogProject"
label="iverilog project label"
interface="IVerilog">
</project>
-->
<project name="project_settings"
label="Project parameters for project_settings"
interface="project_interface"> interface="project_interface">
<parameter id = "SimulationTopFile" <parameter id="SimulationTopFile" label="Project top simulation file"
label = "Project top simulation file" type="FileType" default="default_top (testing)" format="ValueSyntax"
type = "FileType" readonly="false" />
default = "default_top (testing)"
format = "ValueSyntax" <parameter id="SimulationTopModule" label="Project top simulation module"
readonly= "false" /> type="StringType" default="" format="ValueSyntax" readonly="false" />
<parameter id = "SimulationTopModule" <parameter id="BuildDir" label="project build directory"
label = "Project top simulation module" type="DirType" default="build" format="ValueSyntax" readonly="false" />
type = "StringType"
default = ""
format = "ValueSyntax"
readonly= "false" />
<parameter id = "BuildDir"
label = "project build directory"
type = "DirType"
default = "build"
format = "ValueSyntax"
readonly= "false" />
<input> <input>
<group name="General" label="Project properties"> <group name="General" label="Project properties">
...@@ -158,175 +114,123 @@ ...@@ -158,175 +114,123 @@
<tool name = "iverilog" <tool name="iverilog" project="project_settings" label="Icarus Verilog compiler"
project = "project_settings" exe="iverilog" shell="?%%OS: Windows=shell:, Linux=/bin/bash"
label = "Icarus Verilog compiler"
exe = "iverilog"
shell = "?%%OS: Windows=shell:, Linux=/bin/bash"
interface = "IVerilog" interface="IVerilog" errors="(.*):([0-9]+): [a-z_\- ]*error: (.*)"
errors = "(.*):([0-9]+): [a-z_\- ]*error: (.*)" warnings="(.*):([0-9]+): [a-z_\- ]*warning: (.*)" info="(.*):([0-9]+): [a-z_\- ]*info: (.*)"> <!--does not actually exist -->
warnings = "(.*):([0-9]+): [a-z_\- ]*warning: (.*)"
info = "(.*):([0-9]+): [a-z_\- ]*info: (.*)"> <!--does not actually exist -->
<extensions-list> <extensions-list>
<extension mask="v"/> <extension mask="v" />
<extension mask="tf"/> <extension mask="tf" />
</extensions-list> </extensions-list>
<action-menu> <action-menu>
<action label="Simulate" resource="%SimulationTopFile" check-extension="false" check-existence="true" icon="iverilog.ico"/> <action label="Simulate" resource="%SimulationTopFile"
<action label="Simulate for" resource="%%SelectedFile" check-extension="true" check-existence="true"/> check-extension="false" check-existence="true" icon="iverilog.ico" />
<action label="Empty" resource="" icon="sample.gif"/> <action label="Simulate for" resource="%%SelectedFile"
check-extension="true" check-existence="true" />
<action label="Empty" resource="" icon="sample.gif" />
<action label="Just try for" resource="%%OS" /> <action label="Just try for" resource="%%OS" />
</action-menu> </action-menu>
<parameter id = "Param_Shell_Options" <parameter id="Param_Shell_Options" label="Param_Shell_Options"
label = "Param_Shell_Options" type="StringType" format="JustValueSyntax" default="-c" readonly="false"
type = "StringType" visible="true" />
format = "JustValueSyntax" <!-- Intentional error: No, does not detect duplicates yet -->
default = "-c"
readonly = "false" <parameter id="Param_PreExe" label="Param_PreExe" type="StringType"
visible = "true"/> format="JustValueSyntax" default="" readonly="false" visible="true" />
<!-- Intentional error: No, does not detect duplicates yet-->
<parameter id="Param_Exe" label="Param_Exe" type="exeType"
<parameter id = "Param_PreExe" format="exeFileSyntax" default="/usr/bin/iverilog" readonly="false"
label = "Param_PreExe" visible="true" />
type = "StringType"
format = "JustValueSyntax" <parameter id="Param_TopModule" label="Param_TopModule"
default = "" type="StringType" format="TopModuleSyntax" default="%%TopModule"
readonly = "false" readonly="true" visible="true" />
visible = "true"/>
<parameter id="TopModulesOther" type="StringListType"
<parameter id = "Param_Exe" format="TopModulesOtherSyntax" default="" omit=""
label = "Param_Exe" label="Select top modules (not referenced by other modules)"
type = "exeType" readonly="false" visible="true" />
format = "exeFileSyntax"
default = "/usr/bin/iverilog" <parameter id="ModuleLibrary" type="ModuleLibraryType"
readonly = "false" format="ModuleLibrarySyntax" default="" label="Select libraries to include"
visible = "true"/> omit="" readonly="false" visible="true" />
<parameter id = "Param_TopModule"
label = "Param_TopModule" <parameter id="ExtraFiles" type="ExtraFilesType" format="ExtraFilesSyntax"
type = "StringType" default="" label="Select extra files to include" readonly="false"
format = "TopModuleSyntax" visible="true" />
default = "%%TopModule"
readonly = "true"
visible = "true"/> <parameter id="LegacyModel" outid="legacy_model" type="LegacyModelType"
format="D_ParamSyntax" default="true" label="Use legacy model" />
<parameter id = "TopModulesOther"
type = "StringListType" <parameter id="NoSpecify" outid="no-specify" type="NoSpecifyType"
format = "TopModulesOtherSyntax" format="g_ParamSyntax" default="true" label="Use no-specify" />
default = "" <!-- -->
omit = "" <parameter id="SourceList" type="MyTypeList" format="SourceListSyntax"
label = "Select top modules (not referenced by other modules)" default="" readonly="true" visible="false" />
readonly = "false" <!-- -->
visible = "true"/> <parameter id="v" type="SwitchType" format="SwitchSyntax"
default="true" label="Verbose" />
<parameter id = "ModuleLibrary"
type = "ModuleLibraryType" <parameter id="Param_SourceList" label="Param_SourceList"
format = "ModuleLibrarySyntax" type="MyTypeList" format="SourceListSyntax" default="" readonly="true"
default = "" visible="true" />
label = "Select libraries to include"
omit = ""
readonly = "false" <parameter id="Filter_String" label="Filter_String" type="StringType"
visible = "true"/> format="JustValueSyntax"
default="2&gt;&amp;1 | tee %LogFile | grep --line-buffered -E 'error|warning' | grep --line-buffered -v &quot;(null):0&quot;"
readonly="false" visible="true" />
<parameter id = "ExtraFiles"
type = "ExtraFilesType"
format = "ExtraFilesSyntax"
default = "" <parameter id="DbgCurrentFile" label="DbgCurrentFile" type="StringType"
label = "Select extra files to include" format="DbgCurrentFileSyntax" default="" readonly="false" visible="true" />
readonly = "false"
visible = "true"/> <parameter id="ChosenActionIndex" label="ChosenActionIndex"
type="StringType" format="DbgChosenActionIndexSyntax" default=""
readonly="false" visible="true" />
<parameter id = "LegacyModel"
outid = "legacy_model"
type = "LegacyModelType"
format = "D_ParamSyntax" <!-- intentional error below - duplicate -->
default = "true"
label = "Use legacy model"/>
<parameter id = "NoSpecify" <parameter id="ShowNoProblem" type="BoolYesNo" format="None"
outid = "no-specify" default="false" label="Show output with no errors/warnings" />
type = "NoSpecifyType"
format = "g_ParamSyntax" <parameter id="ShowWarnings" type="BoolYesNo" format="None"
default = "true" default="false" label="Show output warnings" />
label = "Use no-specify"/>
<!-- --> <parameter id="RemoveBugs" type="BoolYesNo" format="None"
<parameter id = "SourceList" default="false" label="Remove buggy simulator output" />
type = "MyTypeList"
format = "SourceListSyntax" <parameter id="SaveLogs" type="BoolYesNo" format="None"
default = "" default="false" label="Save simulator log output" />
readonly = "true"
visible = "false"/> <!-- Advanced Section -->
<!-- -->
<parameter id = "v"
type = "SwitchType" <parameter id="LogFile" label="Simulator log file prefix"
format = "SwitchSyntax" type="StringType" default="iverilog" format="LogFileSyntax" readonly="false" />
default = "true"
label = "Verbose"/> <parameter id="GrepFindErr" label="Grep pattern for errors only"
type="StringType" format="GrepFindSyntax" default="error" readonly="false"
<parameter id = "Param_SourceList" visible="true" />
label = "Param_SourceList"
type = "MyTypeList" <parameter id="GrepFindErrWarn" label="Grep pattern for both errors and warnings"
format = "SourceListSyntax" type="StringType" format="GrepFindSyntax" default="error|warning"
default = "" readonly="false" visible="true" />
readonly = "true"
visible = "true"/> <parameter id="GrepSkip1" label="Grep skip pattern" type="StringType"
format="GrepSkipSyntax" default="(null)" readonly="false" visible="true" />
<parameter id = "ErrorsOnly"
type = "LegacyModelType"
format = "D_ParamSyntax"
default = "false"
label = "Only errors/warning to console"/>
<parameter id = "Filter_String"
label = "Filter_String"
type = "StringType"
format = "JustValueSyntax"
default = "2&gt;&amp;1 | tee %LogFile | grep --line-buffered -E 'error|warning' | grep --line-buffered -v &quot;(null):0&quot;"
readonly = "false"
visible = "true"/>
<parameter id = "DbgCurrentFile"
label = "DbgCurrentFile"
type = "StringType"
format = "DbgCurrentFileSyntax"
default = ""
readonly = "false"
visible = "true"/>
<parameter id = "ChosenActionIndex"
label = "ChosenActionIndex"
type = "StringType"
format = "DbgChosenActionIndexSyntax"
default = ""
readonly = "false"
visible = "true"/>
<parameter id = "GrepSkip1"
label = "GrepSkip"
type = "StringType"
format = "GrepSkipSyntax"
default = "(null)"
readonly = "false"
visible = "true"/>
<!-- intentional error below - duplicate -->
<parameter id = "LogFile"
label = "Simulator Log Filie"
type = "StringType"
default = "logfile.log"
format = "LogFileSyntax"
readonly= "false" />
<input> <input>
...@@ -341,25 +245,24 @@ ...@@ -341,25 +245,24 @@
"ExtraFiles" "ExtraFiles"
</group> </group>
<group name="options" label="Options"> <group name="options" label="Options">
"ErrorsOnly" "ShowNoProblem"
"Filter_String" "ShowWarnings"
"GrepSkip1" "RemoveBugs"
"SaveLogs"
"v" "v"
"LegacyModel" "LegacyModel"
"NoSpecify" "NoSpecify"
<!-- "SourceList" --> </group>
<group name="Advanced" label="Advanced">
"LogFile"
"GrepFindErr"
"GrepFindErrWarn"
"GrepSkip1"
</group> </group>
</input> </input>
<output> <output>
<line name="command_line" sep=" "> <line name="command_line" sep=" ">
"%Param_Shell_Options" "%Param_Shell_Options"
"%DbgCurrentFile"
"%ChosenActionIndex"
"echo BuildDir=%BuildDir ;"
"echo CurrentFile=%%CurrentFile ;"
"echo SimulationTopFile=%SimulationTopFile ;"
"echo SimulationTopModule=%SimulationTopModule ;"
"echo LogFile=%LogFile ;"
"%Param_PreExe" "%Param_PreExe"
"%Param_Exe" "%Param_Exe"
"%Param_TopModule" "%Param_TopModule"
...@@ -370,21 +273,29 @@ ...@@ -370,21 +273,29 @@
"%v" "%v"
"%SourceList" "%SourceList"
"%ExtraFiles" "%ExtraFiles"
<if ErrorsOnly="true"> <if ShowNoProblem="false">
"2&gt;&amp;1" "2&gt;&amp;1"
"| tee %LogFile" </if>if>
"| grep --line-buffered -E 'error|warning'" <if SaveLogs="true">
"%LogFile"
</if>
<if ShowNoProblem="false">
<if ShowWarnings="true">
"%GrepFindErrWarn"
</if>
<if ShowWarnings="false">
"%GrepFindErr"
</if>
<if RemoveBugs="true">
"%GrepSkip1" "%GrepSkip1"
<!-- "%Filter_String" --> </if>
</if> </if>
</line> </line>
</output> </output>
</tool> </tool>
<!-- "echo %SimulationTopFile %%CurrentFile ;" --> <!-- "echo %SimulationTopFile %%CurrentFile ;" -->
<!-- <!-- "-s counter_tb" "%SourceList" -->
"-s counter_tb"
"%SourceList" -->
......
<?xml version="1.0" encoding="UTF-8"?>
<!--iverilog -Dlegacy_model -gno-specify -v -o x353mjpeg_test -sglbl -stestbench353 -y./unisims -y. x353_1.tf glbl.v-->
<vdt-project>
<interface name="IVerilogDebug"
extends="project_interface">
<!-- Syntax definitions -->
<syntax name="BoolParamSyntax" format="-%%ParamName"/>
<syntax name="InputPatternSyntax" format= "’%%ParamValue’"/>
<typedef name= "ModuleLibraryType" list="true">
<paramtype kind="string"
default=""
textkind="dir"
maxlength="256"
sensitivity="sensitive"/>
</typedef>
<syntax name = "D_ParamSyntax"
format = "-D%%ParamName"/>
<syntax name = "g_ParamSyntax"
format = "-g%%ParamName"/>
<typedef name="LegacyModelType">
<paramtype kind="bool"
formatTrue="-Dlegacy_model"
formatFalse=""/>
</typedef>
<typedef name="NoSpecifyType">
<paramtype kind="bool"
formatTrue="-gno-specify"
formatFalse=""/>
</typedef>
<syntax name = "QuotedFileListSyntax"
format = "--%%ParamName %(&quot;%%FileList&quot;%| %)"/>
<syntax name = "QuotedTopModuleSyntax"
format = "--%%ParamName=%%TopModule"/>
<syntax name = "QuotedTopModulesSyntax"
format = "--%%ParamName %(&quot;%%TopModules&quot;%| %)"/>
<syntax name = "QuotedSourceListSyntax"
format = "--%%ParamName %(&quot;%%SourceList&quot;%| %)"/>
<syntax name = "QuotedCurrentFileSyntax"
format = "--%%ParamName=&quot;%%CurrentFile&quot;"/>
<syntax name = "QuotedCurrentFileBaseSyntax"
format = "--%%ParamName=&quot;%%CurrentFileBase&quot;"/>
<syntax name = "QuotedProjectNameSyntax"
format = "--%%ParamName=&quot;%%ProjectName&quot;"/>
<!-- Actually used -->
<syntax name="JustValueSyntax" format="%%ParamValue"></syntax>
<syntax name="TopModuleSyntax" format="-s%%TopModule" />
<syntax name="TopModulesOtherSyntax" format="%(-s%%ParamValue%| %)" />
<syntax name="ModuleLibrarySyntax" format="%(-y%%ParamValue%| %)" />
<syntax name="SourceListSyntax" format="%(%%SourceList%| %)" />
<syntax name="ExtraFilesSyntax" format="%(%%ParamValue%| %)" />
<syntax name="exeFileSyntax" format="%%ParamValue" />
<syntax name="SwitchSyntax" format="-%%ParamName" />
<syntax name="DbgCurrentFileSyntax" format="echo &quot;%%CurrentFile&quot; ;" />
<syntax name="DbgChosenActionIndexSyntax" format="echo &quot;index=%%ChosenActionIndex&quot; ;" />
<syntax name="BuildStampSyntax" format="%%BuildStamp" />
<syntax name="LogFileSyntax" format="%%BuildStamp.log" />
<syntax name="GrepSkipSyntax" format="| grep --line-buffered -v &quot;%%ParamValue&quot;" />
<!-- typedef -->
<typedef name="MyTypeList" list="true">
<paramtype kind="string"
maxlength="256"
sensitivity="sensitive"/>
</typedef>
<typedef name= "ExtraFilesType" list="true">
<paramtype kind="string"
textkind="file"
maxlength="256"
sensitivity="sensitive"/>
</typedef>
<typedef name="exeType">
<paramtype kind="string"
maxlength="256"
sensitivity="sensitive"
textkind="file"/>
</typedef>
<typedef name="SwitchType">
<paramtype kind="bool"
formatTrue="-%%ParamName"
formatFalse=""/>
</typedef>
<!--
<typedef name= "StringType" list="true">
<paramtype kind="string"
textkind="text"
maxlength="256"
sensitivity="sensitive"/>
</typedef>
-->
</interface>
<!--
<project name="IVerilogProject"
label="iverilog project label"
interface="IVerilog">
</project>
-->
<project name="project_settings"
label="Project parameters for project_settings"
interface="project_interface">
<parameter id = "SimulationTopFile"
label = "Project top simulation file"
type = "FileType"
default = "default_top (testing)"
format = "ValueSyntax"
readonly= "false" />
<parameter id = "SimulationTopModule"
label = "Project top simulation module"
type = "StringType"
default = ""
format = "ValueSyntax"
readonly= "false" />
<parameter id = "BuildDir"
label = "project build directory"
type = "DirType"
default = "build"
format = "ValueSyntax"
readonly= "false" />
<input>
<group name="General" label="Project properties">
"SimulationTopFile"
"SimulationTopModule"
"BuildDir"
</group>
</input>
<output>
</output>
</project>
<tool name = "iverilog_dbg"
project = "project_settings"
label = "Icarus Verilog compiler - debug"
exe = "iverilog"
shell = "?%%OS: Windows=shell:, Linux=/bin/bash"
interface = "IVerilogDebug"
errors = "(.*):([0-9]+): [a-z_\- ]*error: (.*)"
warnings = "(.*):([0-9]+): [a-z_\- ]*warning: (.*)"
info = "(.*):([0-9]+): [a-z_\- ]*info: (.*)"> <!--does not actually exist -->
<extensions-list>
<extension mask="v"/>
<extension mask="tf"/>
</extensions-list>
<action-menu>
<action label="Simulate" resource="%SimulationTopFile" check-extension="false" check-existence="true" icon="iverilog.ico"/>
<action label="Simulate for" resource="%%SelectedFile" check-extension="true" check-existence="true"/>
<action label="Empty" resource="" icon="sample.gif"/>
<action label="Just try for" resource="%%OS" />
</action-menu>
<parameter id = "Param_Shell_Options"
label = "Param_Shell_Options"
type = "StringType"
format = "JustValueSyntax"
default = "-c"
readonly = "false"
visible = "true"/>
<!-- Intentional error: No, does not detect duplicates yet-->
<parameter id = "Param_PreExe"
label = "Param_PreExe"
type = "StringType"
format = "JustValueSyntax"
default = ""
readonly = "false"
visible = "true"/>
<parameter id = "Param_Exe"
label = "Param_Exe"
type = "exeType"
format = "exeFileSyntax"
default = "/usr/bin/iverilog"
readonly = "false"
visible = "true"/>
<parameter id = "Param_TopModule"
label = "Param_TopModule"
type = "StringType"
format = "TopModuleSyntax"
default = "%%TopModule"
readonly = "true"
visible = "true"/>
<parameter id = "TopModulesOther"
type = "StringListType"
format = "TopModulesOtherSyntax"
default = ""
omit = ""
label = "Select top modules (not referenced by other modules)"
readonly = "false"
visible = "true"/>
<parameter id = "ModuleLibrary"
type = "ModuleLibraryType"
format = "ModuleLibrarySyntax"
default = ""
label = "Select libraries to include"
omit = ""
readonly = "false"
visible = "true"/>
<parameter id = "ExtraFiles"
type = "ExtraFilesType"
format = "ExtraFilesSyntax"
default = ""
label = "Select extra files to include"
readonly = "false"
visible = "true"/>
<parameter id = "LegacyModel"
outid = "legacy_model"
type = "LegacyModelType"
format = "D_ParamSyntax"
default = "true"
label = "Use legacy model"/>
<parameter id = "NoSpecify"
outid = "no-specify"
type = "NoSpecifyType"
format = "g_ParamSyntax"
default = "true"
label = "Use no-specify"/>
<!-- -->
<parameter id = "SourceList"
type = "MyTypeList"
format = "SourceListSyntax"
default = ""
readonly = "true"
visible = "false"/>
<!-- -->
<parameter id = "v"
type = "SwitchType"
format = "SwitchSyntax"
default = "true"
label = "Verbose"/>
<parameter id = "Param_SourceList"
label = "Param_SourceList"
type = "MyTypeList"
format = "SourceListSyntax"
default = ""
readonly = "true"
visible = "true"/>
<parameter id = "ErrorsOnly"
type = "LegacyModelType"
format = "D_ParamSyntax"
default = "false"
label = "Only errors/warning to console"/>
<parameter id = "Filter_String"
label = "Filter_String"
type = "StringType"
format = "JustValueSyntax"
default = "2&gt;&amp;1 | tee %LogFile | grep --line-buffered -E 'error|warning' | grep --line-buffered -v &quot;(null):0&quot;"
readonly = "false"
visible = "true"/>
<parameter id = "DbgCurrentFile"
label = "DbgCurrentFile"
type = "StringType"
format = "DbgCurrentFileSyntax"
default = ""
readonly = "false"
visible = "true"/>
<parameter id = "ChosenActionIndex"
label = "ChosenActionIndex"
type = "StringType"
format = "DbgChosenActionIndexSyntax"
default = ""
readonly = "false"
visible = "true"/>
<parameter id = "GrepSkip1"
label = "GrepSkip"
type = "StringType"
format = "GrepSkipSyntax"
default = "(null)"
readonly = "false"
visible = "true"/>
<!-- intentional error below - duplicate -->
<parameter id = "LogFile"
label = "Simulator Log Filie"
type = "StringType"
default = "logfile.log"
format = "LogFileSyntax"
readonly= "false" />
<input>
<group name="files" label="Files">
<!-- "SimulationTopFile" -->
"Param_PreExe"
"Param_Exe"
"Param_Shell_Options"
"Param_TopModule"
"TopModulesOther"
"ModuleLibrary"
"ExtraFiles"
</group>
<group name="options" label="Options">
"ErrorsOnly"
"Filter_String"
"GrepSkip1"
"v"
"LegacyModel"
"NoSpecify"
<!-- "SourceList" -->
</group>
</input>
<output>
<line name="command_line" sep=" ">
"%Param_Shell_Options"
"%DbgCurrentFile"
"%ChosenActionIndex"
"echo BuildDir=%BuildDir ;"
"echo CurrentFile=%%CurrentFile ;"
"echo SimulationTopFile=%SimulationTopFile ;"
"echo SimulationTopModule=%SimulationTopModule ;"
"echo LogFile=%LogFile ;"
"%Param_PreExe"
"%Param_Exe"
"%Param_TopModule"
"%TopModulesOther"
"%ModuleLibrary"
"%LegacyModel"
"%NoSpecify"
"%v"
"%SourceList"
"%ExtraFiles"
<if ErrorsOnly="true">
"2&gt;&amp;1"
"| tee %LogFile"
"| grep --line-buffered -E 'error|warning'"
"%GrepSkip1"
<!-- "%Filter_String" -->
</if>
</line>
</output>
</tool>
</vdt-project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment