pub struct Args {Show 18 fields
pub input_file: PathBuf,
pub clk_freq: f64,
pub clock_name: Option<String>,
pub output_format: OutputFormat,
pub limit_scope: Option<String>,
pub limit_scope_power: Option<String>,
pub netlist: Option<PathBuf>,
pub top: Option<String>,
pub top_scope: Option<String>,
pub blackboxes_only: bool,
pub remove_virtual_pins: bool,
pub output: Option<PathBuf>,
pub ignore_date: bool,
pub ignore_version: bool,
pub per_clock_cycle: bool,
pub only_glitches: bool,
pub export_empty: bool,
pub input_ports_activity: bool,
}Expand description
trace2power - Extract acccumulated power activity data from VCD/FST
Fields§
§input_file: PathBufTrace file
clk_freq: f64Clock frequency (in Hz)
clock_name: Option<String>Clock signal name
output_format: OutputFormatFormat to extract data into
limit_scope: Option<String>Scope in which signals should be looked for. By default it’s the global hierarchy scope.
limit_scope_power: Option<String>Scope in which power will be calculated. By default it’s equal to limit_scope.
Must be a subset of limit_scope.
netlist: Option<PathBuf>Yosys JSON netlist of DUT. Can be used to identify ports of primitives when exporting data. Allows skipping unnecessary or unwanted signals
top: Option<String>Name of the top module (DUT)
top_scope: Option<String>Scope at which the DUT is located. The loaded netlist will be rooted at this point.
blackboxes_only: boolExport only nets from blackboxes (undefined modules) in provided netlist. Those are assumed to be post-synthesis primitives
remove_virtual_pins: boolRemove nets that are in blackboxes and have suspicious names: “VGND”, “VNB”, “VPB”, “VPWR”.
output: Option<PathBuf>Write the output to a specified file instead of stdout. In case of per clock cycle output, it must be a directory.
ignore_date: boolIgnore exporting current date.
ignore_version: boolIgnore exporting current version.
per_clock_cycle: boolAccumulate stats for each clock cycle separately. Output path is required to be a directory.
only_glitches: boolWrite stats only for glitches
export_empty: boolExport without accumulation
input_ports_activity: boolSet activity for input ports in TCL mode
Implementations§
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more