Last change
on this file since 212 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
-
Property svn:executable
set to
*
|
File size:
592 bytes
|
Line | |
---|
1 | /* Author : Rick van der Zwet
|
---|
2 | * S-number : 0433373
|
---|
3 | * Version : $Id: alu.h 365 2007-12-03 08:54:04Z rick $
|
---|
4 | * Copyright : FreeBSD Licence
|
---|
5 | * Description : ALU unit header
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef ALU_H
|
---|
9 | #define ALU_H
|
---|
10 |
|
---|
11 | #include "sim.h"
|
---|
12 |
|
---|
13 | /* Signals */
|
---|
14 | boolean zero;
|
---|
15 | boolean negative;
|
---|
16 |
|
---|
17 | typedef enum {
|
---|
18 | ALU_STALLED,
|
---|
19 | ADD,
|
---|
20 | AND,
|
---|
21 | NOR,
|
---|
22 | OR,
|
---|
23 | PassS1,
|
---|
24 | PassS2,
|
---|
25 | SLL,
|
---|
26 | SRA,
|
---|
27 | SRL,
|
---|
28 | SUB,
|
---|
29 | XOR
|
---|
30 | } alu_control_t;
|
---|
31 |
|
---|
32 | word alu_sra(const word in1, const word in2);
|
---|
33 | word alu(word in1, word in2, alu_control_t action);
|
---|
34 |
|
---|
35 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.