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

Subversion Repositories t6507lp

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

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
                item alu_opcode using radix=HEX, no_collect=TRUE;
36
                cross input_kind, alu_opcode;
37
                //item alu_a;
38
        };
39
 
40
        post_generate() is also {
41
                emit T1_cover_event;
42
        };
43
};
44
'>
45
 
46
event cover_me;
47
 
48
   cover cover_me is {
49
      item a1 using no_collect=TRUE;
50
      item b2 using no_collect=TRUE;
51
      transition a1 using name=a_trans, no_collect=TRUE;
52
      transition b2 using name = b_trans, no_collect=TRUE;
53
      cross a_trans,b_trans;
54
   };
55
 
56
 

powered by: WebSVN 2.1.0

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