You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user-manual/architecture.typ
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -752,17 +752,26 @@ The dry runs and `HBS_DEBUG` are probably more than enough for debugging build f
752
752
753
753
By setting the `HBS_DEVICE` environment variable, you can enforce the value of the `hbs::Device`.
754
754
If `HBS_DEVICE` is set, then `hbs.tcl` during initialization (before any hbs file is sourced) sets the value of `hbs::Device` to the value of `HBS_DEVICE`.
755
-
If `HBS_DEVICE` is set, any call to `hbs::SetDevice` is ignored.
755
+
If `HBS_DEVICE` is set, any call to the `hbs::SetDevice` is ignored.
756
756
757
757
The `HBS_DEVICE` variable might be useful for determining the target device for the build from the shell.
758
758
Similar functionality can be achieved using the target parameters described in @arch-target-parameters.
759
759
However, you may want to utilize target parameters for different purposes.
760
760
761
+
=== HBS\_EXIT\_SEVERITY - enforcing exit severity
762
+
763
+
By setting the `HBS_EXIT_SEVERITY` environment variable, you can enforce the value of the `hbs::ExitSeverity`.
764
+
If `HBS_EXIT_SEVERITY` is set, then `hbs.tcl` during initialization (before any hbs file is sourced) sets the value of `hbs::ExitSeverity` to the value of `HBS_EXIT_SEVERITY`.
765
+
If `HBS_EXIT_SEVERITY` is set, any call to the `hbs::ExitSeverity` is ignored.
766
+
767
+
The `HBS_EXIT_SEVERITY` environment variable is useful for quickly running testbenches with modified exit severity.
768
+
For example, your simulation suddenly starts failing, and you would like to stop it when the first warning is encountered.
769
+
761
770
=== HBS\_TOOL - enforcing tool <hbs-tool>
762
771
763
772
By setting the `HBS_TOOL` environment variable, you can enforce the value of the `hbs::Tool`.
764
773
If `HBS_TOOL` is set, then `hbs.tcl` during initialization (before any hbs file is sourced) sets the value of `hbs::Tool` to the value of `HBS_TOOL`.
765
-
If `HBS_TOOL` is set, any call to `hbs::SetTool` is ignored.
774
+
If `HBS_TOOL` is set, any call to the `hbs::SetTool` is ignored.
766
775
767
776
The `HBS_TOOL` environment variable is helpful in running testbench targets with different simulators.
768
777
If you want to run just a single testbench target with multiple simulators, then you can use a target parameter (see @arch-target-parameters) for your testbench target, or you can set the `HBS_TOOL` environment variable.
@@ -791,7 +800,7 @@ hbs test
791
800
792
801
By setting the `HBS_STD` environment variable, you can enforce the value of the `hbs::Std`.
793
802
If `HBS_STD` is set, then `hbs.tcl` during initialization (before any hbs file is sourced) sets the value of `hbs::Std` to the value of `HBS_STD`.
794
-
If `HBS_STD` is set, any call to `hbs::SetStd` is ignored.
803
+
If `HBS_STD` is set, any call to the `hbs::SetStd` is ignored.
795
804
796
805
The `HBS_STD` environment variable is analogous to the `HBS_TOOL` environment variable.
797
806
However, running multiple, or even one, testbench targets with different HDL standard revisions is probably not useful.
@@ -801,5 +810,5 @@ The `HBS_STD` environment variable is rather handy for quickly checking if a giv
801
810
802
811
By setting the `HBS_BUILD_DIR` environment variable, you can enforce the value of the `hbs::BuildDir`.
803
812
If `HBS_BUILD_DIR` is set, then `hbs.tcl` during initialization (before any hbs file is sourced) sets the value of `hbs::BuildDir` to the value of `HBS_BUILD_DIR`.
804
-
If `HBS_BUILD_DIR` is set, any call to `hbs::SetBuildDir` is ignored.
813
+
If `HBS_BUILD_DIR` is set, any call to the `hbs::SetBuildDir` is ignored.
805
814
The usefulness and functionality of `HBS_BUILD_DIR` are described in @hbs-tool
0 commit comments