/* A simple Yosys plugin. (Copy&paste from http://stackoverflow.com/questions/32093541/how-does-the-yosys-consteval-api-work) Usage example: $ cat > evaldemo.v <, Design *design) override { Module *module = design->top_module(); if (module == nullptr) log_error("No top module found!\n"); Wire *wire_a = module->wire(ID::A); Wire *wire_y = module->wire(ID::Y); if (wire_a == nullptr) log_error("No wire A found!\n"); if (wire_y == nullptr) log_error("No wire Y found!\n"); ConstEval ce(module); for (int v = 0; v < 4; v++) { ce.push(); ce.set(wire_a, Const(v, GetSize(wire_a))); SigSpec sig_y = wire_y, sig_undef; if (ce.eval(sig_y, sig_undef)) log("Eval results for A=%d: Y=%s\n", v, log_signal(sig_y)); else log("Eval failed for A=%d: Missing value for %s\n", v, log_signal(sig_undef)); ce.pop(); } } } EvalDemoPass; PRIVATE_NAMESPACE_END Edimax-v2 Edimax BR-6578AC V2 base from https://github.com/ulli-kroll/lede.gitJames
summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
blob: 87a2940d02156c343d628f40c3393dea2897a410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129