<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.verific.com/faq/index.php?action=history&amp;feed=atom&amp;title=Accessing_and_evaluating_module%27s_parameters</id>
		<title>Accessing and evaluating module's parameters - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.verific.com/faq/index.php?action=history&amp;feed=atom&amp;title=Accessing_and_evaluating_module%27s_parameters"/>
		<link rel="alternate" type="text/html" href="https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;action=history"/>
		<updated>2026-05-02T12:42:58Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;diff=708&amp;oldid=prev</id>
		<title>Hoa at 20:14, 27 July 2021</title>
		<link rel="alternate" type="text/html" href="https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;diff=708&amp;oldid=prev"/>
				<updated>2021-07-27T20:14:14Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:14, 27 July 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot; &gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; unsigned i ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; unsigned i ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; FOREACH_ARRAY_ITEM (module_items, i, module_item) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; FOREACH_ARRAY_ITEM (module_items, i, module_item) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; if (!module_item) continue ;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; if (!(module_item-&amp;gt;IsParamDecl()) &amp;amp;&amp;amp; !(module_item-&amp;gt;IsLocalParamDecl())) continue ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; if (!(module_item-&amp;gt;IsParamDecl()) &amp;amp;&amp;amp; !(module_item-&amp;gt;IsLocalParamDecl())) continue ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; VeriDataDecl * param_decl = static_cast&amp;lt;VeriDataDecl *&amp;gt;(module_item) ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; VeriDataDecl * param_decl = static_cast&amp;lt;VeriDataDecl *&amp;gt;(module_item) ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hoa</name></author>	</entry>

	<entry>
		<id>https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;diff=707&amp;oldid=prev</id>
		<title>Hoa at 19:44, 27 July 2021</title>
		<link rel="alternate" type="text/html" href="https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;diff=707&amp;oldid=prev"/>
				<updated>2021-07-27T19:44:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:44, 27 July 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot; &gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Message::PrintLine(&amp;quot;&amp;#160; &amp;#160; local param: &amp;quot;, param-&amp;gt;Name()) ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Message::PrintLine(&amp;quot;&amp;#160; &amp;#160; local param: &amp;quot;, param-&amp;gt;Name()) ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; VeriExpression *&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;initial_value &lt;/del&gt;= param-&amp;gt;GetInitialValue() ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; VeriExpression *&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;initial_expr &lt;/ins&gt;= param-&amp;gt;GetInitialValue() ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; if (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;initial_value&lt;/del&gt;) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; if (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;initial_expr&lt;/ins&gt;) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Message::PrintLine(&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; initial expression: &amp;quot;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;initial_value&lt;/del&gt;-&amp;gt;GetPrettyPrintedString()) ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Message::PrintLine(&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; initial expression: &amp;quot;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;initial_expr&lt;/ins&gt;-&amp;gt;GetPrettyPrintedString()) ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; VeriBaseValue *val = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;initial_value&lt;/del&gt;-&amp;gt;StaticEvaluate(0, 0) ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; VeriBaseValue *val = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;initial_expr&lt;/ins&gt;-&amp;gt;StaticEvaluate(0, 0) ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; int int_val = val ? val-&amp;gt;GetIntegerValue() : 0 ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; int int_val = val ? val-&amp;gt;GetIntegerValue() : 0 ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Message::PrintLine(&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; initial value: &amp;quot;, Strings::itoa(int_val)) ;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Message::PrintLine(&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; initial value: &amp;quot;, Strings::itoa(int_val)) ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hoa</name></author>	</entry>

	<entry>
		<id>https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;diff=706&amp;oldid=prev</id>
		<title>Hoa at 19:43, 27 July 2021</title>
		<link rel="alternate" type="text/html" href="https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;diff=706&amp;oldid=prev"/>
				<updated>2021-07-27T19:43:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:43, 27 July 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l65&quot; &gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &amp;lt;nowiki&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ cat test.v&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ cat test.v&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;module leaf(bus);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;module leaf(bus);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l133&quot; &gt;Line 133:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 134:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hoa</name></author>	</entry>

	<entry>
		<id>https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;diff=705&amp;oldid=prev</id>
		<title>Hoa: Created page with &quot; &lt;nowiki&gt; #include &quot;Map.h&quot; #include &quot;Array.h&quot; #include &quot;Strings.h&quot; #include &quot;veri_file.h&quot; #include &quot;VeriBaseValue_Stat.h&quot; #include &quot;VeriModule.h&quot; #include &quot;VeriExpression.h&quot; #...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.verific.com/faq/index.php?title=Accessing_and_evaluating_module%27s_parameters&amp;diff=705&amp;oldid=prev"/>
				<updated>2021-07-27T19:40:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;lt;nowiki&amp;gt; #include &amp;quot;Map.h&amp;quot; #include &amp;quot;Array.h&amp;quot; #include &amp;quot;Strings.h&amp;quot; #include &amp;quot;veri_file.h&amp;quot; #include &amp;quot;VeriBaseValue_Stat.h&amp;quot; #include &amp;quot;VeriModule.h&amp;quot; #include &amp;quot;VeriExpression.h&amp;quot; #...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#include &amp;quot;Map.h&amp;quot;&lt;br /&gt;
#include &amp;quot;Array.h&amp;quot;&lt;br /&gt;
#include &amp;quot;Strings.h&amp;quot;&lt;br /&gt;
#include &amp;quot;veri_file.h&amp;quot;&lt;br /&gt;
#include &amp;quot;VeriBaseValue_Stat.h&amp;quot;&lt;br /&gt;
#include &amp;quot;VeriModule.h&amp;quot;&lt;br /&gt;
#include &amp;quot;VeriExpression.h&amp;quot;&lt;br /&gt;
#include &amp;quot;VeriId.h&amp;quot;&lt;br /&gt;
#include &amp;quot;RuntimeFlags.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#ifdef VERIFIC_NAMESPACE&lt;br /&gt;
using namespace Verific ;&lt;br /&gt;
#endif&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char **argv)&lt;br /&gt;
{&lt;br /&gt;
    const char *file = (argc &amp;gt; 1) ? argv[1] : &amp;quot;test.v&amp;quot; ;&lt;br /&gt;
    if (!veri_file::Analyze(file, veri_file::SYSTEM_VERILOG)) return 1 ;&lt;br /&gt;
&lt;br /&gt;
    // If you want to replace constant expressions during static elaboration&lt;br /&gt;
    // RuntimeFlags::SetVar(&amp;quot;veri_replace_const_exprs&amp;quot;, 1) ;&lt;br /&gt;
&lt;br /&gt;
    // If you want to run static elaboration&lt;br /&gt;
    veri_file::ElaborateAllStatic() ;&lt;br /&gt;
&lt;br /&gt;
    MapIter mi ;&lt;br /&gt;
    VeriModule *mod ;&lt;br /&gt;
    FOREACH_VERILOG_MODULE(mi, mod) {&lt;br /&gt;
        Message::PrintLine(&amp;quot;module: &amp;quot;, mod-&amp;gt;Name()) ;&lt;br /&gt;
        Array *module_items = mod-&amp;gt;GetModuleItems() ;&lt;br /&gt;
        VeriModuleItem *module_item ;&lt;br /&gt;
        unsigned i ;&lt;br /&gt;
        FOREACH_ARRAY_ITEM (module_items, i, module_item) {&lt;br /&gt;
            if (!(module_item-&amp;gt;IsParamDecl()) &amp;amp;&amp;amp; !(module_item-&amp;gt;IsLocalParamDecl())) continue ;&lt;br /&gt;
            VeriDataDecl * param_decl = static_cast&amp;lt;VeriDataDecl *&amp;gt;(module_item) ;&lt;br /&gt;
            /*&lt;br /&gt;
            VeriDataType *data_type = param_decl-&amp;gt;GetDataType() ;&lt;br /&gt;
            if (data_type) {&lt;br /&gt;
                Message::PrintLine(&amp;quot;    data type: &amp;quot;, data_type-&amp;gt;GetPrettyPrintedString()) ;&lt;br /&gt;
            }&lt;br /&gt;
            */&lt;br /&gt;
            Array *param_array = param_decl-&amp;gt;GetIds() ;&lt;br /&gt;
            VeriIdDef *param ;&lt;br /&gt;
            unsigned i ;&lt;br /&gt;
            FOREACH_ARRAY_ITEM (param_array, i, param) {&lt;br /&gt;
                if (!param) continue ;&lt;br /&gt;
                if (module_item-&amp;gt;IsParamDecl()) {&lt;br /&gt;
                    Message::PrintLine(&amp;quot;    param: &amp;quot;, param-&amp;gt;Name()) ;&lt;br /&gt;
                }&lt;br /&gt;
                if (module_item-&amp;gt;IsLocalParamDecl()) {&lt;br /&gt;
                    Message::PrintLine(&amp;quot;    local param: &amp;quot;, param-&amp;gt;Name()) ;&lt;br /&gt;
                }&lt;br /&gt;
                VeriExpression *initial_value = param-&amp;gt;GetInitialValue() ;&lt;br /&gt;
                if (initial_value) {&lt;br /&gt;
                    Message::PrintLine(&amp;quot;        initial expression: &amp;quot;, initial_value-&amp;gt;GetPrettyPrintedString()) ;&lt;br /&gt;
                    VeriBaseValue *val = initial_value-&amp;gt;StaticEvaluate(0, 0) ;&lt;br /&gt;
                    int int_val = val ? val-&amp;gt;GetIntegerValue() : 0 ;&lt;br /&gt;
                    Message::PrintLine(&amp;quot;        initial value: &amp;quot;, Strings::itoa(int_val)) ;&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    return 0 ;&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
$ cat test.v&lt;br /&gt;
module leaf(bus);&lt;br /&gt;
  parameter PARAMLEAF = 1;&lt;br /&gt;
  localparam PARAMLEAFLOCAL = PARAMLEAF+PARAMLEAF-1+2;&lt;br /&gt;
  input [PARAMLEAF-1:0] bus;&lt;br /&gt;
endmodule&lt;br /&gt;
&lt;br /&gt;
module top();&lt;br /&gt;
  parameter TOPP = 3;&lt;br /&gt;
  localparam TOPL = 4;&lt;br /&gt;
&lt;br /&gt;
  leaf leaf1();&lt;br /&gt;
  leaf #(.PARAMLEAF(2)) leaf2();&lt;br /&gt;
  leaf #(.PARAMLEAF(TOPP)) leaf3();&lt;br /&gt;
  leaf #(.PARAMLEAF(TOPL+2)) leaf6();&lt;br /&gt;
endmodule&lt;br /&gt;
&lt;br /&gt;
$ test-linux&lt;br /&gt;
-- Analyzing Verilog file 'test.v' (VERI-1482)&lt;br /&gt;
test.v(7): INFO: compiling module 'top' (VERI-1018)&lt;br /&gt;
test.v(11): WARNING: port 'bus' is not connected on this instance (VERI-2435)&lt;br /&gt;
test.v(12): WARNING: port 'bus' is not connected on this instance (VERI-2435)&lt;br /&gt;
test.v(13): WARNING: port 'bus' is not connected on this instance (VERI-2435)&lt;br /&gt;
test.v(14): WARNING: port 'bus' is not connected on this instance (VERI-2435)&lt;br /&gt;
-- module: leaf&lt;br /&gt;
--     param: PARAMLEAF&lt;br /&gt;
--         initial expression: 1&lt;br /&gt;
--         initial value: 1&lt;br /&gt;
--     local param: PARAMLEAFLOCAL&lt;br /&gt;
--         initial expression: (((PARAMLEAF + PARAMLEAF) - 1) + 2)&lt;br /&gt;
--         initial value: 3&lt;br /&gt;
-- module: top&lt;br /&gt;
--     param: TOPP&lt;br /&gt;
--         initial expression: 3&lt;br /&gt;
--         initial value: 3&lt;br /&gt;
--     local param: TOPL&lt;br /&gt;
--         initial expression: 4&lt;br /&gt;
--         initial value: 4&lt;br /&gt;
-- module: leaf_default&lt;br /&gt;
--     param: PARAMLEAF&lt;br /&gt;
--         initial expression: 1&lt;br /&gt;
--         initial value: 1&lt;br /&gt;
--     local param: PARAMLEAFLOCAL&lt;br /&gt;
--         initial expression: (((PARAMLEAF + PARAMLEAF) - 1) + 2)&lt;br /&gt;
--         initial value: 3&lt;br /&gt;
-- module: leaf(PARAMLEAF=2)&lt;br /&gt;
--     param: PARAMLEAF&lt;br /&gt;
--         initial expression: 2&lt;br /&gt;
--         initial value: 2&lt;br /&gt;
--     local param: PARAMLEAFLOCAL&lt;br /&gt;
--         initial expression: (((PARAMLEAF + PARAMLEAF) - 1) + 2)&lt;br /&gt;
--         initial value: 5&lt;br /&gt;
-- module: leaf(PARAMLEAF=3)&lt;br /&gt;
--     param: PARAMLEAF&lt;br /&gt;
--         initial expression: 3&lt;br /&gt;
--         initial value: 3&lt;br /&gt;
--     local param: PARAMLEAFLOCAL&lt;br /&gt;
--         initial expression: (((PARAMLEAF + PARAMLEAF) - 1) + 2)&lt;br /&gt;
--         initial value: 7&lt;br /&gt;
-- module: leaf(PARAMLEAF=6)&lt;br /&gt;
--     param: PARAMLEAF&lt;br /&gt;
--         initial expression: 6&lt;br /&gt;
--         initial value: 6&lt;br /&gt;
--     local param: PARAMLEAFLOCAL&lt;br /&gt;
--         initial expression: (((PARAMLEAF + PARAMLEAF) - 1) + 2)&lt;br /&gt;
--         initial value: 13&lt;br /&gt;
&lt;br /&gt;
$&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hoa</name></author>	</entry>

	</feed>