From 327fa6a4d155860818e3802d824969841669dca9 Mon Sep 17 00:00:00 2001
From: stefan schippers
Date: Thu, 14 Aug 2025 00:39:35 +0200
Subject: [PATCH] added description of expr(...) in symbol attribytes
---
doc/xschem_man/symbol_property_syntax.html | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/doc/xschem_man/symbol_property_syntax.html b/doc/xschem_man/symbol_property_syntax.html
index 028e84cd..9f5bcfb8 100644
--- a/doc/xschem_man/symbol_property_syntax.html
+++ b/doc/xschem_man/symbol_property_syntax.html
@@ -559,6 +559,20 @@ verilog_format="xnor #(@risedel , @falldel ) @name ( @@Z , @@A , @@B );"
wires and instances (in case of lcc symbols). If set to true (symbol_ignore=true)
the corresponding element will not be displayed when the symbol is instantiated.
+ expr(....)
+
+ The string inside the parenthesis will be evaluated if possible.
+ Example:
+
+ expr(@W * @m )
+
+ Will be replaced by the product of @W * @m, if @W and @m can be resolved to numbers.
+ If not the expression will be left as is with the substituted parameters.
+ Suggestion: always put a space after a @param, otherwise xschem will not recognize
+ the correct param name.
+
+
+
PREDEFINED SYMBOL VALUES