URL
https://opencores.org/ocsvn/tcp_socket/tcp_socket/trunk
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"""
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.