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

Subversion Repositories t6507lp

[/] [t6507lp/] [trunk/] [fv/] [alu_input.e] - Blame information for rev 146

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

Line No. Rev Author Line
1 130 creep
alu_input.e
2
<'
3 132 creep
import alu_components.e;
4 143 creep
type alu_input_t: [ENABLED_VALID, DISABLED_VALID, RESET];
5 130 creep
 
6
struct alu_input_s {
7
        input_kind : alu_input_t;
8
 
9
        reset_n: bool;
10
        alu_enable: bool;
11 132 creep
        alu_opcode: valid_opcodes;
12 130 creep
        alu_a: byte;
13
 
14
        keep soft input_kind == select {
15 143 creep
                45: ENABLED_VALID;
16
                45: DISABLED_VALID;
17
                10: RESET;
18 130 creep
        };
19
 
20
        when ENABLED_VALID'input_kind alu_input_s {
21
                keep reset_n == TRUE; // remember this is active low
22
                keep alu_enable == TRUE;
23
                keep alu_a in [0..255];
24
        };
25 143 creep
 
26 130 creep
        when DISABLED_VALID'input_kind alu_input_s {
27
                keep reset_n == TRUE; // remember this is active low
28
                keep alu_enable == FALSE;
29
                keep alu_a in [0..255];
30
        };
31
 
32 143 creep
        when RESET'input_kind alu_input_s {
33
                keep reset_n == FALSE; // remember this is active low
34
                //keep alu_enable in [FALSE, TRUE];
35
                keep alu_a in [0..255];
36
                //keep alu_opcode in [0..255];
37
        };
38
 
39 130 creep
        event T1_cover_event;
40
        cover T1_cover_event is {
41
                item input_kind using no_collect=TRUE;
42 131 creep
                item alu_opcode using num_of_buckets=256, radix=HEX, no_collect=TRUE;
43 130 creep
                cross input_kind, alu_opcode;
44
                //item alu_a;
45
        };
46
 
47
};
48
'>
49
 

powered by: WebSVN 2.1.0

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