OpenCores
URL https://opencores.org/ocsvn/t6507lp/t6507lp/trunk

Subversion Repositories t6507lp

[/] [t6507lp/] [trunk/] [fv/] [alu_chk.e] - Blame information for rev 131

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 creep
alu_chk.e
2
<'
3
import alu_components;
4
 
5
unit alu_chk_u {
6
        reg_a : byte;
7
        reg_x : byte;
8
        reg_y : byte;
9
        reg_status : byte;
10
 
11
        count_cycles : int;
12
        first_cycle : bool;
13
 
14
        keep first_cycle == TRUE;
15
        keep count_cycles == 0;
16
 
17
        store(input : alu_input_s) is {
18
                out ("input stored: ", input);
19
        };
20
 
21
        compare(alu_result:byte, alu_status:byte, alu_x:byte, alu_y:byte ) is {
22
                if (first_cycle) {
23
                        first_cycle = FALSE;
24
                        reg_x = alu_x;
25
                        reg_y = alu_y;
26
                        reg_status = alu_status;
27
                        reg_a = ???? // TODO
28
                }
29
        };
30
};
31
'>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.