abc::print_gates — report staistics of gate types
Sends the command print_gates parameters
to ABC and waits for a prompt.
Parses the output and converts values reported by ABC to items
in the result
array.
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.
const
, float const_percent
(out)Number and percentage of constant generators (logical 0, 1).
buffer
, float buffer_percent
(out)Number and percentage of buffers.
inverter
, float inverter_percent
(out)Number and percentage of inverters.
and
, float and_percent
(out)Number and percentage of AND gates, including gates derived from AND by inversion of inputs, e.g. NOR.
or
, float or_percent
(out)Number and percentage of OR gates, including gates derived from OR by inversion of inputs, e.g. NAND.
other
, float other_percent
(out)Number and percentage of other gates, i. e. XOR and XNOR.
total
, float total_percent
(out)Number and percentage of all gates. The percentage is always 100%.
parameters
(in)Optional argument. Parameters for the ABC print_gates 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
.