File tree 1 file changed +40
-5
lines changed
1 file changed +40
-5
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ module foo;
9
9
);
10
10
input sysclk;
11
11
`ifdef LABEL_B
12
- input bclko;
12
+ input bclko;
13
13
`endif
14
- input cmode;
14
+ input cmode;
15
15
`endif
16
16
17
17
// instead of:
@@ -26,9 +26,44 @@ module foo;
26
26
);
27
27
input sysclk;
28
28
`ifdef LABEL_B
29
- input bclko;
29
+ input bclko;
30
30
`endif
31
- input cmode;
32
- `endif
31
+ input cmode;
32
+ `endif // `ifdef LABEL_A
33
+ reg a,b;
34
+ `ifdef A
35
+ always @(a) begin
36
+ b = a; // asfSDfsdfsasa
37
+ b = a; // asfSDfsdfsasa
38
+ b = a; // asfSDfsdfsasa //
39
+ b = a; // asfSDfsdfsasa //
40
+ b = a; // asfSDfsdfsasa //
41
+ b = a; // asfSDfsdfsasa //
42
+ b = a; // asfSDfsdfsasa //
43
+ b = a; // asfSDfsdfsasa //
44
+ b = a; // asfSDfsdfsasa //
45
+ end
46
+ `elsif B
47
+ always @(b) begin
48
+ a = b; // asfSDfsdfsasa
49
+ a = b; // asfSDfsdfsasa
50
+ a = b; // asfSDfsdfsasa //
51
+ a = b; // asfSDfsdfsasa
52
+ a = b; // asfSDfsdfsasa
53
+ a = b; // asfSDfsdfsasa //
54
+ a = b; // asfSDfsdfsasa
55
+ a = b; // asfSDfsdfsasa
56
+ a = b; // asfSDfsdfsasa //
57
+ a = b; // asfSDfsdfsasa
58
+ a = b; // asfSDfsdfsasa
59
+ a = b; // asfSDfsdfsasa //
60
+ end
61
+ `else // !`elsif B
62
+ always @(a or b) begin
63
+ a <= b;
64
+ b <= a;
65
+ end
66
+ `endif // !`elsif B
67
+
33
68
34
69
endmodule // foo
You can’t perform that action at this time.
0 commit comments