OpenCores
URL https://opencores.org/ocsvn/tcp_socket/tcp_socket/trunk

Subversion Repositories tcp_socket

[/] [tcp_socket/] [trunk/] [chips2/] [chips/] [compiler/] [optimizer.py] - Diff between revs 2 and 4

Show entire file | Details | Blame | View Log

Rev 2 Rev 4
Line 129... Line 129...
 
 
  def is_solitary(instruction):
  def is_solitary(instruction):
 
 
    """Return True if an instruction cannot be executed in parallel with other instructions"""
    """Return True if an instruction cannot be executed in parallel with other instructions"""
 
 
    return instruction["op"] in ["read", "write", "ready", "label", "/", "%"]
        if "type" in instruction and instruction["type"] == "float":
 
            if instruction["op"] in ["+", "-", "/", "*"]:
 
                return True
 
        return instruction["op"] in ["read", "write", "ready", "label", "/", "%", "int_to_float", "float_to_int", "file_write", "file_read"]
 
 
  def is_jump(instruction):
  def is_jump(instruction):
 
 
    """Return True if an instruction contains a branch or jump"""
    """Return True if an instruction contains a branch or jump"""
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.