/* Author : Rick van der Zwet * S-number : 0433373 * Version : $Id: alu.h 365 2007-12-03 08:54:04Z rick $ * Copyright : FreeBSD Licence * Description : ALU unit header */ #ifndef ALU_H #define ALU_H #include "sim.h" /* Signals */ boolean zero; boolean negative; typedef enum { ALU_STALLED, ADD, AND, NOR, OR, PassS1, PassS2, SLL, SRA, SRL, SUB, XOR } alu_control_t; word alu_sra(const word in1, const word in2); word alu(word in1, word in2, alu_control_t action); #endif