abc::print_latch — report statistics of latches in the circuit
Sends the command print_fanio parameters
to ABC and waits for a prompt.
Parses the output and converts values reported by ABC to items in the result
array. The parsing covers both ABC 70930 and 90813 versions (the latter has less
cryptic category labels). When ABC reports the circuit as combinational, latch
counts in all categories are set to 0.
result
(out)Optional argument. If omitted, no information is returned. The following items are present:
errorCode
(out)Error code. See RETURN CODES
below. Also put to the errorCode
global variable.
rawOutput
(out)The unprocessed output of ABC, including the final prompt.
promptNumber
(out)The number included in the final prompt. The ABC prompt has the "abc123> " form. The number indicates successive version of the network stored in ABC.
cmdTime
(out)Time in milliseconds elapsed by the command.
total_latches
(out)Total number of latches (flip-flops) in the circuit.
init0
(out)Number of latches initialized to logical 0.
init1
(out)Number of latches initialized to logical 1.
initDC
(out)Number of uninitialized latches.
const_data
(out)Number of latches with constant input.
parameters
(in)Optional argument. Parameters for the ABC print_latch command. Defaults to an empty string.
timeout
(in)Optional argument. If given, sets the timeout of Expect
for this command. Othervise, the value of the timeout
global variable applies.
The procedure returns an empty string. See abctcl(n) , abc::messages(n) for error reporting and error symbols. The following error symbols can occur:
parameters
.