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

Subversion Repositories t6507lp

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

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

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

powered by: WebSVN 2.1.0

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