Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad ImportFrom alias Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd AttributeLoad NameLoad attr Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMult ListLoad TupleLoad Num Expr Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad keyword Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad keyword Str Expr Call NameLoad Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad keyword NameLoad Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body With Call NameLoad NameLoad Str NameStore body Assign NameStore NameLoad If Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Num If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpAdd NameLoad Num NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While CompareNotEq NameLoad Str body If Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Break Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Str NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd NameLoad NameLoad NameLoad AugAssignAdd NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A __future__ print_function N/A re N/A os N/A sys N/A inspect N/A collections model.metaclasses MetaCollectArgs pymtl * translation.verilog_structural mangle_name tab endl port_delim pretty_align title_bar header start_mod port_declarations end_mod start_param end_param start_ports end_ports connection VerilogImportError N/A Exception N/A N/A N/A SomeMeta N/A MetaCollectArgs N/A __call__ N/A N/A self N/A args kwargs N/A N/A inst N/A N/A N/A super SomeMeta self __call__ args kwargs translation.verilator_sim TranslationTool N/A N/A inst vcd_file __dummy__ N/A new_inst N/A TranslationTool inst lint True N/A N/A new_inst vcd_file None N/A N/A N/A new_inst __class__ __name__ N/A N/A inst __class__ __name__ N/A N/A N/A new_inst __class__ __bases__ N/A VerilogModel N/A N/A new_inst _args N/A inst _args N/A N/A new_inst vprefix N/A inst vprefix N/A N/A new_inst modulename N/A inst modulename N/A N/A new_inst sourcefile N/A inst sourcefile N/A N/A new_inst vlinetrace N/A inst vlinetrace N/A N/A new_inst _param_dict N/A inst _param_dict N/A N/A new_inst _port_dict N/A inst _port_dict N/A N/A N/A N/A N/A new_inst __class__ line_trace N/A N/A N/A inst __class__ __dict__ N/A line_trace N/A N/A inst vlinetrace N/A N/A N/A VerilogImportError Cannot define a PyMTL line_trace
function and also use vlinetrace = True. Must use _either_
PyMTL line tracing or use Verilog line tracing. N/A N/A N/A KeyError N/A N/A N/A new_inst N/A N/A VerilogModel N/A Model N/A N/A 
  A PyMTL model for importing hand-written Verilog modules.

  Attributes:
    modulename  Name of the Verilog module to import.
    sourcefile  Location of the .v file containing the module.
   N/A __metaclass__ SomeMeta N/A modulename None N/A sourcefile None N/A vprefix None N/A vlinetrace False N/A _param_dict None N/A _port_dict None set_params N/A N/A self param_dict N/A N/A N/A Specify values for each parameter in the imported Verilog module.

    Note that param_dict should be a dictionary that provides a mapping
    from parameter names (strings) to parameter values, for example:

    >>> s.set_params({
    >>>   'param1': 5,
    >>>   'param2': 0,
    >>> })
     N/A N/A self _param_dict N/A N/A collections OrderedDict N/A sorted N/A N/A param_dict items N/A set_ports N/A N/A self port_dict N/A N/A N/A Specify values for each parameter in the imported Verilog module.

    Note that port_dict should be a dictionary that provides a mapping
    from port names (strings) to PyMTL InPort or OutPort objects, for
    examples:

    >>> s.set_ports({
    >>>   'clk':    s.clk,
    >>>   'reset':  s.reset,
    >>>   'input':  s.in_,
    >>>   'output': s.out,
    >>> })
     N/A N/A self _port_dict N/A N/A collections OrderedDict N/A sorted N/A N/A port_dict items N/A _auto_init N/A N/A self N/A N/A N/A Infer fields not set by user based on Model attributes. N/A N/A N/A self modulename N/A N/A N/A self modulename N/A N/A self __class__ __name__ N/A N/A N/A self sourcefile N/A N/A file_ N/A N/A inspect getfile N/A self __class__ N/A N/A self sourcefile N/A N/A N/A os path join N/A N/A N/A os path dirname file_ N/A N/A self modulename .v N/A N/A N/A self vprefix N/A N/A N/A N/A self modulename startswith N/A self vprefix N/A N/A N/A self modulename N/A N/A N/A self vprefix _ N/A self modulename N/A N/A N/A self _param_dict N/A N/A N/A self _param_dict N/A self _args N/A N/A N/A self _port_dict N/A N/A N/A self _port_dict N/A N/A port name port N/A port N/A N/A self get_ports N/A N/A import_module N/A N/A model o N/A N/A N/A Generate Verilog source for a user-defined VerilogModule and return
  the name of the source file containing the imported component.
   N/A symtab N/A N/A N/A 4 N/A N/A print N/A header model symtab file o end N/A N/A print N/A N/A start_mod format N/A model class_name file o N/A N/A print N/A port_declarations model symtab file o end N/A N/A print N/A _instantiate_verilog model file o N/A N/A print N/A N/A end_mod format N/A model class_name file o N/A N/A print file o N/A N/A model sourcefile N/A N/A include_re N/A N/A re compile "(?P<filename>[\w/\.-]*)" output_verilog_file N/A N/A fout include_path verilog_file N/A N/A N/A N/A open verilog_file r fp N/A N/A short_verilog_file verilog_file N/A N/A N/A verilog_file startswith N/A include_path / N/A N/A short_verilog_file N/A verilog_file N/A N/A len N/A include_path / N/A N/A N/A fout write N/A N/A `line 1 "{}" 0
 format short_verilog_file N/A line_num 0 N/A line fp N/A N/A line_num 1 N/A N/A `include line N/A N/A filename N/A N/A N/A N/A include_re search line group filename N/A fullname N/A N/A N/A os path join include_path filename N/A N/A output_verilog_file fout include_path fullname N/A N/A N/A fout write N/A N/A N/A fout write N/A N/A `line {} "{}" 0
 format N/A line_num 1 short_verilog_file N/A N/A N/A N/A fout write line N/A import_sources N/A N/A source_list o N/A N/A N/A Import Verilog source from all Verilog files source_list, as well
  as any source files specified by `include within those files.
   N/A N/A source_list N/A N/A N/A top_verilog_file N/A source_list N/A 0 N/A _path N/A N/A N/A os path dirname top_verilog_file N/A special_file_found False N/A include_path N/A N/A N/A os path dirname N/A N/A N/A os path abspath top_verilog_file N/A N/A include_path / N/A N/A N/A N/A N/A os path exists N/A N/A include_path N/A N/A os path sep .pymtl-python-path N/A N/A special_file_found True N/A N/A N/A N/A sys path insert 0 include_path N/A N/A include_path N/A N/A N/A os path dirname include_path N/A N/A special_file_found N/A N/A include_path N/A N/A N/A os path dirname N/A N/A N/A os path abspath top_verilog_file N/A include_re N/A N/A re compile "(?P<filename>[\w/\.-]*)" N/A N/A output_verilog_file o include_path N/A source_list N/A 0 N/A _instantiate_verilog N/A N/A model N/A N/A N/A N/A N/A model _auto_init N/A params N/A N/A N/A connection format k v N/A N/A k v N/A N/A N/A model _param_dict items N/A connections N/A N/A N/A verilog_portname port N/A N/A N/A model _port_dict items N/A N/A pymtl_port N/A mangle_name N/A port name N/A N/A N/A connections append N/A N/A connection format verilog_portname pymtl_port N/A connections N/A pretty_align connections ( N/A s N/A N/A tab // Imported Verilog source from: endl N/A s N/A N/A tab N/A N/A // {} format N/A model sourcefile endl N/A s endl N/A s N/A N/A N/A tab N/A model modulename start_param endl N/A s N/A N/A N/A port_delim join params endl N/A s N/A N/A N/A N/A tab end_param tab verilog_module endl N/A s N/A N/A tab start_ports endl N/A s N/A N/A N/A port_delim join connections endl N/A s N/A N/A tab end_ports endl N/A s N/A