Class: OrigenTesters::SmartestBasedTester::V93K::Flow

Inherits:
Base::Flow show all
Defined in:
lib/origen_testers/smartest_based_tester/v93k/flow.rb

Constant Summary collapse

TEMPLATE =
"#{Origen.root!}/lib/origen_testers/smartest_based_tester/v93k/templates/template.tf.erb"

Constants inherited from Base::Flow

Base::Flow::RELATIONAL_OPERATOR_STRINGS

Constants included from Flow

Flow::PROGRAM_MODELS_DIR

Instance Attribute Summary

Attributes inherited from Base::Flow

#add_flow_enable, #flow_bypass, #flow_description, #flow_name, #lines, #set_runtime_variables, #stack, #subdirectory, #test_methods, #test_suites, #var_filename

Instance Method Summary collapse

Methods inherited from Base::Flow

#all_sub_flows, #ast, #at_flow_end, #at_flow_start, #capture_lines, #clean_job, #extract_sub_flows, #filename, #finalize, #flow_enable_var_name, #flow_variables, #generate_expr_string, #generate_expr_term, generate_flag_name, #hardware_bin_descriptions, #limits_file, #line, #on_condition_flag, #on_disable, #on_enable, #on_group, #on_if_enabled, #on_if_flag, #on_if_job, #on_log, #on_loop, #on_render, #on_set, #on_set_flag, #on_set_result, #on_test, #on_top_level_set, #on_unset_flag, #on_whenever, #render_limits_file, #set_var_filename, #smt8?, #sub_flow_from, #unique_group_name

Methods included from Flow

#active_description, #at_flow_start, #at_run_start, callstack, cc_comments, cc_comments=, #children, comment_stack, #context_changed?, flow_comments, flow_comments=, #generate_unique_label, ht_comments, ht_comments=, #is_the_flow?, #lines, #model, name_stack, #nop, #orig_render, #parent, #path, #program, #render, #save_program, #sig, #test, #top_level, #top_level?, unique_ids, unique_ids=

Methods included from ATP::FlowAPI

#atp, #atp=, #hi_limit, #limit, #lo_limit, #loop

Methods included from Generator

#close, #collection, #collection=, #compiler, #current_dir, #dont_diff=, execute_source, #file_extension, #file_pipeline, #filename, #filename=, #finalize, #identity_map, #import, #inhibit_output, #name, #on_close, original_reference_file, original_reference_file=, #output_file, #output_inhibited?, #platform, #reference_file, #render, #set_flow_description, #stats, #to_be_written?, #write_from_template, #write_to_file

Methods inherited from ATP::Formatter

#format, format, run, run_and_format, #run_and_format

Methods inherited from ATP::Processor

#add_global_flag, #clean_flag, #extract_globals, #extract_volatiles, #global_flag?, #global_flags, #handler_missing, #process, #process_all, #run, #volatile?, #volatile_flags

Instance Method Details



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/origen_testers/smartest_based_tester/v93k/flow.rb', line 27

def flow_footer
  f = []
  if add_flow_enable
    f << '    }'
    f << '    else'
    f << '    {'
    f << '    }'
  end
  f << ''
  f << "  }, open,\"#{flow_name}\",\"#{flow_description}\""
  f
end

#flow_headerObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/origen_testers/smartest_based_tester/v93k/flow.rb', line 8

def flow_header
  h = ['  {']
  if add_flow_enable
    h << "    if @#{flow_enable_var_name} == 1 then"
    h << '    {'
    i = '   '
  else
    i = ''
  end
  if set_runtime_variables.size > 0
    h << i + '    {'
    set_runtime_variables.each do |var|
      h << i + "       @#{generate_flag_name(var.to_s)} = -1;"
    end
    h << i + '    }, open,"Init Flow Control Vars", ""'
  end
  h
end