From 8275a99d8dfdec74bc80fa311d475d91aca18306 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Fri, 15 Jul 2022 00:07:15 +0200 Subject: [PATCH] doc updates (links to fsic2022 presentation) --- XSchemWin/XSchemWix/xschemrc | 31 +++++++++++++++++++++++++++-- doc/xschem_man/xschem_man.html | 6 +++++- scconfig/hooks.c | 1 + scconfig/src/default/find_fstools.c | 18 ++++++++++++++--- scconfig/src/default/lib_compile.c | 7 ++++++- 5 files changed, 56 insertions(+), 7 deletions(-) diff --git a/XSchemWin/XSchemWix/xschemrc b/XSchemWin/XSchemWix/xschemrc index 5045a137..d80d7699 100644 --- a/XSchemWin/XSchemWix/xschemrc +++ b/XSchemWin/XSchemWix/xschemrc @@ -106,6 +106,7 @@ #### variable controls hierarchical print #### default value: empty # set noprint_libs {} + ########################################################################### #### CHANGE DEFAULT [] WITH SOME OTHER CHARACTERS FOR BUSSED SIGNALS #### IN SPICE NETLISTS (EXAMPLE: DATA[7] --> DATA<7>) @@ -151,6 +152,10 @@ #### default: 0 # set persistent_command 1 +#### if set to 1 a wire is inserted when separating components that are +#### connected by pins. Default: not enabled (0) +# set connect_by_kissing 1 + #### if set to 1 automatically join/trim wires while editing #### this may slow down on rally big designs. Can be disabled via menu #### default: 0 @@ -166,6 +171,15 @@ #### enable to scale grid point size as done with lines at close zoom, default: 0 # set big_grid_points 0 +#### enable grouping contiguous bits of bus slices in net->pin instance +#### assignments for verilog netlists. Default: disabled (0) +# set verilog_bitblast 0 + +#### allow searching the full search path for schematics associated to symbols +#### instead of looking only in symbol directory. Default: disabled (0). +# set search_schematic 0 + + ########################################################################### #### EXPORT FORMAT TRANSLATORS, PNG AND PDF ########################################################################### @@ -323,7 +337,7 @@ set editor {notepad.exe} #### XSCHEM TOOLBAR ########################################################################### #### default: not enabled. -set toolbar_visible 1 +# set toolbar_visible 1 # set toolbar_horiz 1 ########################################################################### @@ -331,4 +345,17 @@ set toolbar_visible 1 ########################################################################### # default: not enabled. Interface can be changed runtime if only one window # or tab is open. -# set tabbed_interface 1 \ No newline at end of file +# set tabbed_interface 1 + +########################################################################### +#### CASE INSENSITIVE SYMBOL LOOKUP +########################################################################### +## this option might be useful on filesystems that are case insensitive and +## on designs ported from windows where case of file names does not matter. +## if this option is set symbol lookup will be case insensitive, +## so a symbol reference 'AMPLI.SYM' will match with 'ampli.sym' or +## Amply.sym on disk. File system must be case insensitive for this to work, +## like FAT32 or NTFS. +## Do not set this option if you don't know what you are doing. +## Default: not enabled (0) +# set case_insensitive 1 \ No newline at end of file diff --git a/doc/xschem_man/xschem_man.html b/doc/xschem_man/xschem_man.html index 2ef3a293..d0f92cdb 100644 --- a/doc/xschem_man/xschem_man.html +++ b/doc/xschem_man/xschem_man.html @@ -21,7 +21,11 @@

-

Xschem slides

+

+ Xschem slides + [PDF version] +

+

[Video] Xschem FSiC2022 presentation

All in one pdf documentation (repo.hu, github, sourceforge version with autoconfig)

diff --git a/scconfig/hooks.c b/scconfig/hooks.c index 53f97052..ff20f755 100644 --- a/scconfig/hooks.c +++ b/scconfig/hooks.c @@ -216,6 +216,7 @@ int hook_detect_target() } */ } + append("cc/cflags", " -Werror=format-security"); } if (require("libs/io/popen/*", 0, 0) != 0) { diff --git a/scconfig/src/default/find_fstools.c b/scconfig/src/default/find_fstools.c index d2d230ea..5813cba9 100644 --- a/scconfig/src/default/find_fstools.c +++ b/scconfig/src/default/find_fstools.c @@ -638,19 +638,31 @@ int find_fstools_ranlib(const char *name, int logdepth, int fatal) { const char *ranlib, *target; char *targetranlib; - int len; + int len, no_cc, no_ar; char *test_code = NL "int zero() { return 0; }" NL; char *obj = ".o"; (void) fatal; /* to suppress compiler warnings about not using fatal */ - require("fstools/ar", logdepth, fatal); - require("cc/cc", logdepth, fatal); + no_ar = require("fstools/ar", logdepth, fatal); + no_cc = require("cc/cc", logdepth, fatal); report("Checking for ranlib... "); logprintf(logdepth, "find_fstools_ranlib: trying to find ranlib...\n"); logdepth++; + if (no_cc) { + report("can't test (no c compiler)\n"); + logprintf(logdepth, "find_fstools_ranlib: can't test (no c compiler)\n"); + return 1; + } + + if (no_ar) { + report("can't test (no ar)\n"); + logprintf(logdepth, "find_fstools_ranlib: can't test (no ar)\n"); + return 1; + } + logprintf(logdepth, "compiling test object...\n"); if (compile_code(logdepth+1, test_code, &obj, NULL, "-c", NULL) != 0) { logprintf(logdepth, "ERROR: Can't compile test object\n"); diff --git a/scconfig/src/default/lib_compile.c b/scconfig/src/default/lib_compile.c index 6f7dca49..efb6ce8c 100644 --- a/scconfig/src/default/lib_compile.c +++ b/scconfig/src/default/lib_compile.c @@ -84,7 +84,12 @@ int compile_file_raw(int logdepth, const char *fn_input, char **fn_output, const *fn_output = tempfile_new(*fn_output); unlink(*fn_output); - cc_esc = shell_escape_dup(cc == NULL ? get("cc/cc") : cc); + cc_esc = (cc == NULL ? get("cc/cc") : cc); + if (cc_esc == NULL) { + error("Trying to compile without a compiler available (cc/cc is empty)\n"); + abort(); + } + cc_esc = shell_escape_dup(cc_esc); fn_input_esc = shell_escape_dup(fn_input); fn_output_esc = shell_escape_dup(*fn_output); temp_out_esc = shell_escape_dup(temp_out);