From a43f336c6cf398541c418bf4e9fc6e793f7ea44f Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sun, 4 May 2008 22:10:54 -0700 Subject: [PATCH] Include va_math if compiling Verilog-AMS The va_math module implements functions that are optional in base Verilog but included in Verilog-AMS. So automatically include the module if -gverilog-ams is given. --- driver/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/driver/main.c b/driver/main.c index 32a40cf27..953262012 100644 --- a/driver/main.c +++ b/driver/main.c @@ -734,6 +734,13 @@ int main(int argc, char **argv) how to handle them. */ fprintf(iconfig_file, "sys_func:%s%csystem.sft\n", base, sep); + /* If verilog-ams is enabled, then include the va_math module + as well. */ + if (strcmp(gen_verilog_ams,"verilog-ams") == 0) { + fprintf(iconfig_file, "sys_func:%s%cva_math.sft\n", base, sep); + fprintf(iconfig_file, "module:va_math\n"); + } + if (mtm != 0) fprintf(iconfig_file, "-T:%s\n", mtm); fprintf(iconfig_file, "generation:%s\n", generation); fprintf(iconfig_file, "generation:%s\n", gen_specify);