Browse Source

Added xor/xnor for logicexp timing models.

pre-master-46
Brian Taylor 3 years ago
committed by Holger Vogt
parent
commit
929d1f5190
  1. 10
      src/frontend/logicexp.c

10
src/frontend/logicexp.c

@ -312,6 +312,12 @@ static char *tmodel_gate_name(int c, BOOL not)
else else
sprintf(buf, "dxspice_dly_or"); sprintf(buf, "dxspice_dly_or");
break; break;
case '^':
if (not)
sprintf(buf, "dxspice_dly_xnor");
else
sprintf(buf, "dxspice_dly_xor");
break;
default: default:
return NULL; return NULL;
} }
@ -1593,6 +1599,10 @@ BOOL f_logicexp(char *line)
"d_or", "dxspice_dly_or"); "d_or", "dxspice_dly_or");
u_add_logicexp_model(parse_lexer->lexer_buf, u_add_logicexp_model(parse_lexer->lexer_buf,
"d_nor", "dxspice_dly_nor"); "d_nor", "dxspice_dly_nor");
u_add_logicexp_model(parse_lexer->lexer_buf,
"d_xor", "dxspice_dly_xor");
u_add_logicexp_model(parse_lexer->lexer_buf,
"d_xnor", "dxspice_dly_xnor");
use_tmodel_delays = TRUE; use_tmodel_delays = TRUE;
} else { } else {
use_tmodel_delays = FALSE; use_tmodel_delays = FALSE;

Loading…
Cancel
Save