Skip to content

Commit ed92eb6

Browse files
committed
Development: Some test on ServoBit added
1 parent 70fb073 commit ed92eb6

File tree

21 files changed

+3584
-0
lines changed

21 files changed

+3584
-0
lines changed
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"image": "",
3+
"state": {
4+
"pan": {
5+
"x": 0,
6+
"y": 0
7+
},
8+
"zoom": 0.9999999479483561
9+
},
10+
"board": "icezum",
11+
"graph": {
12+
"blocks": [
13+
{
14+
"id": "289670b6-0d76-4c0e-91ce-23f62b106fa5",
15+
"type": "basic.input",
16+
"data": {
17+
"label": "clk",
18+
"pin": {
19+
"name": "CLK",
20+
"value": "21"
21+
}
22+
},
23+
"position": {
24+
"x": 64,
25+
"y": 136
26+
}
27+
},
28+
{
29+
"id": "9f22a42a-6a51-47a4-8e49-e456686d6621",
30+
"type": "basic.output",
31+
"data": {
32+
"label": "c0",
33+
"pin": {
34+
"name": "LED0",
35+
"value": "95"
36+
}
37+
},
38+
"position": {
39+
"x": 784,
40+
"y": 40
41+
}
42+
},
43+
{
44+
"id": "362b1fa9-2d17-4fa7-8868-cf48b55b0fd1",
45+
"type": "basic.output",
46+
"data": {
47+
"label": "c1",
48+
"pin": {
49+
"name": "LED1",
50+
"value": "96"
51+
}
52+
},
53+
"position": {
54+
"x": 784,
55+
"y": 104
56+
}
57+
},
58+
{
59+
"id": "90f5bb94-a014-454c-9d54-d7809849e996",
60+
"type": "basic.output",
61+
"data": {
62+
"label": "c2",
63+
"pin": {
64+
"name": "LED2",
65+
"value": "97"
66+
}
67+
},
68+
"position": {
69+
"x": 784,
70+
"y": 168
71+
}
72+
},
73+
{
74+
"id": "654ce9a0-78e7-4585-952f-abe32f19b2e4",
75+
"type": "basic.output",
76+
"data": {
77+
"label": "c3",
78+
"pin": {
79+
"name": "LED3",
80+
"value": "98"
81+
}
82+
},
83+
"position": {
84+
"x": 784,
85+
"y": 232
86+
}
87+
},
88+
{
89+
"id": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
90+
"type": "basic.code",
91+
"data": {
92+
"code": "// Counter 4 bit\n\nreg [3:0] counter;\n\nalways @(posedge clk)\n counter <= counter + 1;\n\nassign c0 = counter[0];\nassign c1 = counter[1];\nassign c2 = counter[2];\nassign c3 = counter[3];\n",
93+
"ports": {
94+
"in": [
95+
"clk"
96+
],
97+
"out": [
98+
"c0",
99+
"c1",
100+
"c2",
101+
"c3"
102+
]
103+
}
104+
},
105+
"position": {
106+
"x": 272,
107+
"y": 40
108+
}
109+
}
110+
],
111+
"wires": [
112+
{
113+
"source": {
114+
"block": "289670b6-0d76-4c0e-91ce-23f62b106fa5",
115+
"port": "out"
116+
},
117+
"target": {
118+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
119+
"port": "clk"
120+
}
121+
},
122+
{
123+
"source": {
124+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
125+
"port": "c0"
126+
},
127+
"target": {
128+
"block": "9f22a42a-6a51-47a4-8e49-e456686d6621",
129+
"port": "in"
130+
}
131+
},
132+
{
133+
"source": {
134+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
135+
"port": "c1"
136+
},
137+
"target": {
138+
"block": "362b1fa9-2d17-4fa7-8868-cf48b55b0fd1",
139+
"port": "in"
140+
}
141+
},
142+
{
143+
"source": {
144+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
145+
"port": "c2"
146+
},
147+
"target": {
148+
"block": "90f5bb94-a014-454c-9d54-d7809849e996",
149+
"port": "in"
150+
}
151+
},
152+
{
153+
"source": {
154+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
155+
"port": "c3"
156+
},
157+
"target": {
158+
"block": "654ce9a0-78e7-4585-952f-abe32f19b2e4",
159+
"port": "in"
160+
}
161+
}
162+
]
163+
},
164+
"deps": {}
165+
}
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
{
2+
"image": "",
3+
"state": {
4+
"pan": {
5+
"x": 0,
6+
"y": 0
7+
},
8+
"zoom": 0.9999999479483561
9+
},
10+
"graph": {
11+
"blocks": [
12+
{
13+
"id": "289670b6-0d76-4c0e-91ce-23f62b106fa5",
14+
"type": "basic.input",
15+
"data": {
16+
"label": "clk"
17+
},
18+
"position": {
19+
"x": 64,
20+
"y": 136
21+
}
22+
},
23+
{
24+
"id": "9f22a42a-6a51-47a4-8e49-e456686d6621",
25+
"type": "basic.output",
26+
"data": {
27+
"label": "c0"
28+
},
29+
"position": {
30+
"x": 784,
31+
"y": 40
32+
}
33+
},
34+
{
35+
"id": "362b1fa9-2d17-4fa7-8868-cf48b55b0fd1",
36+
"type": "basic.output",
37+
"data": {
38+
"label": "c1"
39+
},
40+
"position": {
41+
"x": 784,
42+
"y": 104
43+
}
44+
},
45+
{
46+
"id": "90f5bb94-a014-454c-9d54-d7809849e996",
47+
"type": "basic.output",
48+
"data": {
49+
"label": "c2"
50+
},
51+
"position": {
52+
"x": 784,
53+
"y": 168
54+
}
55+
},
56+
{
57+
"id": "654ce9a0-78e7-4585-952f-abe32f19b2e4",
58+
"type": "basic.output",
59+
"data": {
60+
"label": "c3"
61+
},
62+
"position": {
63+
"x": 784,
64+
"y": 232
65+
}
66+
},
67+
{
68+
"id": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
69+
"type": "basic.code",
70+
"data": {
71+
"code": "// Counter 4 bit\n\nreg [3:0] counter;\n\nalways @(posedge clk)\n counter <= counter + 1;\n\nassign c0 = counter[0];\nassign c1 = counter[1];\nassign c2 = counter[2];\nassign c3 = counter[3];\n",
72+
"ports": {
73+
"in": [
74+
"clk"
75+
],
76+
"out": [
77+
"c0",
78+
"c1",
79+
"c2",
80+
"c3"
81+
]
82+
}
83+
},
84+
"position": {
85+
"x": 272,
86+
"y": 40
87+
}
88+
}
89+
],
90+
"wires": [
91+
{
92+
"source": {
93+
"block": "289670b6-0d76-4c0e-91ce-23f62b106fa5",
94+
"port": "out"
95+
},
96+
"target": {
97+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
98+
"port": "clk"
99+
}
100+
},
101+
{
102+
"source": {
103+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
104+
"port": "c0"
105+
},
106+
"target": {
107+
"block": "9f22a42a-6a51-47a4-8e49-e456686d6621",
108+
"port": "in"
109+
}
110+
},
111+
{
112+
"source": {
113+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
114+
"port": "c1"
115+
},
116+
"target": {
117+
"block": "362b1fa9-2d17-4fa7-8868-cf48b55b0fd1",
118+
"port": "in"
119+
}
120+
},
121+
{
122+
"source": {
123+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
124+
"port": "c2"
125+
},
126+
"target": {
127+
"block": "90f5bb94-a014-454c-9d54-d7809849e996",
128+
"port": "in"
129+
}
130+
},
131+
{
132+
"source": {
133+
"block": "e7e93a55-9c37-4956-b0a1-0ec928bee3c5",
134+
"port": "c3"
135+
},
136+
"target": {
137+
"block": "654ce9a0-78e7-4585-952f-abe32f19b2e4",
138+
"port": "in"
139+
}
140+
}
141+
]
142+
},
143+
"deps": {}
144+
}

0 commit comments

Comments
 (0)