parameters: (file_name, file_target, options=None)
docstring: Compile verilog via iverilog
  
      Parameters
      ----------
      file_name : str or list of str
          The cuda code.
  
      file_target : str
          The target file.
docstring_summary: Compile verilog via iverilog
docstring_tokens: Compile verilog via iverilog
function: def compile_file(file_name, file_target, options=None):
      """Compile verilog via iverilog
  
      Parameters
      ----------
      file_name : str or list of str
          The cuda code.
  
      file_target : str
          The target file.
      """
      cmd = ["iverilog"]
      for path in search_path():
          cmd += ["-I%s" % path]
  
      cmd += ["-o", file_target]
      if options:
          cmd += options
  
      if isinstance(file_name, string_types):
          file_name = [file_name]
      cmd += file_name
      proc = subprocess.Popen(
          cmd,
          stdout=subprocess.PIPE,
          stderr=subprocess.STDOUT)
      (out, _) = proc.communicate()
  
      if proc.returncode != 0:
          raise ValueError("Compilation error:\n%s" % out)
function_tokens: def compile_file ( file_name , file_target , options = None ) : cmd = [ "iverilog" ] for path in search_path ( ) : cmd += [ "-I%s" % path ] cmd += [ "-o" , file_target ] if options : cmd += options if isinstance ( file_name , string_types ) : file_name = [ file_name ] cmd += file_name proc = subprocess . Popen ( cmd , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) ( out , _ ) = proc . communicate ( ) if proc . returncode != 0 : raise ValueError ( "Compilation error:\n%s" % out )