* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Steve Raasch
*/
#ifndef __CPU_FUNC_UNIT_HH__
#define __CPU_FUNC_UNIT_HH__
+#include <array>
#include <bitset>
#include <string>
#include <vector>
class FuncUnit
{
private:
- unsigned opLatencies[Num_OpClasses];
- bool pipelined[Num_OpClasses];
+ std::array<unsigned, Num_OpClasses> opLatencies;
+ std::array<bool, Num_OpClasses> pipelined;
std::bitset<Num_OpClasses> capabilityList;
public: