diff --git a/doc/xschem_man/symbol_property_syntax.html b/doc/xschem_man/symbol_property_syntax.html index 060c5482..d23d260e 100644 --- a/doc/xschem_man/symbol_property_syntax.html +++ b/doc/xschem_man/symbol_property_syntax.html @@ -169,7 +169,8 @@ type=nmos
If any of these attributes are present and not empty the corresponding netlister will ignore the schematic subcircuit +
If any of these attributes are present and not empty and the symbol type is set to subcircuit
+ the corresponding netlister will ignore the schematic subcircuit
and dump into the netlist the content of this attribute. The typical usage is to include a file, example:
verilog_sym_def="tcleval(`include \"[abs_sym_path verilog_include_file.v]\")"
diff --git a/src/token.c b/src/token.c
index f09ea576..79d6e307 100644
--- a/src/token.c
+++ b/src/token.c
@@ -2435,7 +2435,7 @@ static void print_verilog_primitive(FILE *fd, int inst) /* netlist switch level
for(i=0;iinst[inst].ptr + xctx->sym)->rect[PINLAYER][i].prop_ptr;
if(!strcmp( get_tok_value(prop,"name",0), token+2)) {
str_ptr = net_name(inst,i, &multip, 0, 1);
- fprintf(fd, "----pin(%s)", str_ptr);
+ fprintf(fd, "----pin(%s) ", str_ptr);
break;
}
}
diff --git a/src/verilog_netlist.c b/src/verilog_netlist.c
index 1c525d99..3ac8a909 100644
--- a/src/verilog_netlist.c
+++ b/src/verilog_netlist.c
@@ -449,8 +449,8 @@ void verilog_block_netlist(FILE *fd, int i)
if(sym_def[0]) {
fprintf(fd, "%s\n", sym_def);
} else {
- my_strdup(1040, &extra, get_tok_value((xctx->inst[i].ptr + xctx->sym)->prop_ptr, "verilog_extra", 0));
- my_strdup(1563, &extra2, get_tok_value((xctx->inst[i].ptr + xctx->sym)->prop_ptr, "verilog_extra", 0));
+ my_strdup(1040, &extra, get_tok_value(xctx->sym[i].prop_ptr, "verilog_extra", 0));
+ my_strdup(1563, &extra2, get_tok_value(xctx->sym[i].prop_ptr, "verilog_extra", 0));
fprintf(fd, "// sch_path: %s\n", filename);
verilog_stop? load_schematic(0,filename, 0) : load_schematic(1,filename, 0);
/* print verilog timescale and preprocessor directives 10102004 */