Skip to content

Commit c37bbe3

Browse files
committed
[tool] Refactor the topgen tooling to use the rdl files
From this commit the source of truth for the registers offsets is replaced from the data/config.toml file to the data/top.rdl file. Signed-off-by: Douglas Reis <[email protected]>
1 parent 7cdfa13 commit c37bbe3

File tree

9 files changed

+497
-722
lines changed

9 files changed

+497
-722
lines changed

data/top_config.toml

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,3 @@
1-
[[blocks]]
2-
name = "gpio"
3-
instances = 6 # RPi, Ard, Pmod0, Pmod1, PmodC
4-
ios = [
5-
{
6-
name = "ios",
7-
type = "inout",
8-
combine = "mux",
9-
length = 32
10-
},
11-
]
12-
memory_start = 0x80000000
13-
memory_size = 0x00000040
14-
xbar = { pipeline = "true"}
15-
16-
[[blocks]]
17-
name = "pwm"
18-
instances = 1
19-
ios = [{ name = "out", type = "output", length = 7 }]
20-
memory_start = 0x80001000
21-
memory_size = 0x00001000
22-
xbar = { pipeline = "true", req_fifo_pass = "false", rsp_fifo_pass = "false" }
23-
24-
[[blocks]]
25-
name = "uart"
26-
instances = 3
27-
ios = [
28-
{ name = "rx", type = "input", default = 1 },
29-
{ name = "tx", type = "output" },
30-
]
31-
memory_start = 0x80100000
32-
memory_size = 0x00001000
33-
xbar = { pipeline = "true", req_fifo_pass = "false", rsp_fifo_pass = "false" }
34-
35-
[[blocks]]
36-
name = "i2c"
37-
instances = 2
38-
ios = [
39-
{ name = "scl", type = "inout", combine = "and" },
40-
{ name = "sda", type = "inout", combine = "and" },
41-
]
42-
memory_start = 0x80200000
43-
memory_size = 0x00001000
44-
xbar = { pipeline = "true", req_fifo_pass = "false", rsp_fifo_pass = "false" }
45-
46-
[[blocks]]
47-
name = "spi"
48-
instances = 3
49-
ios = [
50-
{ name = "cipo", type = "input", default = 0 },
51-
{ name = "copi", type = "output" },
52-
{ name = "sclk", type = "output" },
53-
{ name = "cs", type = "output", length = 4 },
54-
]
55-
memory_start = 0x80302000
56-
memory_size = 0x00001000
57-
581
# UARTS
592
[[pins]]
603
name = "ser0_tx"

0 commit comments

Comments
 (0)