From 0845ce5329271fe0f6da83eaa40ee9b325b511f4 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 22 Feb 2020 12:10:50 +0100 Subject: [PATCH] enable "null allowed" for reset input --- src/xspice/icm/digital/d_state/cfunc.mod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xspice/icm/digital/d_state/cfunc.mod b/src/xspice/icm/digital/d_state/cfunc.mod index 18f4ed371..8fc56db45 100644 --- a/src/xspice/icm/digital/d_state/cfunc.mod +++ b/src/xspice/icm/digital/d_state/cfunc.mod @@ -1879,7 +1879,9 @@ void cm_d_state(ARGS) LOAD(clk) = PARAM(clk_load); - LOAD(reset) = PARAM(reset_load); + if ( !PORT_NULL(reset) ) { + LOAD(reset) = PARAM(reset_load); + } } else { /**** Retrieve previous values ****/