COMPUTE FSM
Computes the finite state machine for circuit implementation.
Contents
Private method of pwar object.
Syntax
[state info] = computeFSM(object)
Function which starting from the search tree representing the hierarchical partition of the input domain associates each node to a structure (state) with the following fields:#
- name - numbering order of the state
- isLeaf - "1" if the actual node is a leaf, "0" otherwise.
- address - index of the first element of matrix F for the computation of the PWA function related to the current node. The other coefficients are addressed by adding an offset. If the actual node is not a leaf, the address is set to 0.
- next - 1x(2^n_dim) matrix representing the children of the node.
- depth - depth of the node corresponding to the state.
This structure is suited for the automatic generation of a Finite State Machine associated to the tree, in the mPWAR circuit.
See also pwar/writeFSM, pwar.
Acknowledgements
Contributors:
- Bart Genuit (b.a.g.genuit@tue.nl)
- Francesco Comaschi (francesco.comaschi@unige.it)
Copyright is with:
- Copyright (C) 2012 Eindhoven University of Technology, The Netherlands.
- Copyright (C) 2011 University of Genoa, Italy.