class Backend extends AnyRef
This konata backend symplify the way a konata file can be generated, by handeling a buffer of in progress instructions.
For each hardware thread, the user need to have invoked the newThread function once. Each Thread returned contains a cycleLock timestamp which specifies until which time the pendings instruction for the given thread are full completed can could be flushed out.
The user can push instructions into its pendings hashmap, using the instruction creation timestamp as a key. Instructions need to be have their "elements" lists of Command already populated, Commands having a timestamp and being able to write themself as a konata string.
The user can periodicaly call the flush function, this will flush all the instructions until the minimal threads.cycleLock
- Alphabetic
- By Inheritance
- Backend
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Backend(f: File)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bf: BufferedWriter
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
- def close(): Unit
- var cycle: Long
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def flush(): Unit
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- var idAlloc: Long
- def insert(i: Instruction): Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newThread(): Thread
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val pendings: HashMap[Long, ArrayBuffer[Instruction]]
- def refresh(): Unit
- def spinalSimFlusher(period: Long): Backend.this.type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val threads: ArrayBuffer[Thread]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated