-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathchipsDefFormat.ini
49 lines (37 loc) · 1.35 KB
/
chipsDefFormat.ini
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
{
ChipName : ChipType [, arg1[, arg2...]]
ChipName : ChipType [, arg1[, arg2...]]
...
}
{
ChipName.PortName [- ChipName.PortName[\[offset:bits[,offset]\]] - ... ]- ChipName.PortName [: CableName]
ChipName.PortName [- ChipName.PortName - ... ]- ChipName.PortName [: CableName]
...
}
# About the [beginPin:endPin, offset] format:
We are connecting ChipName.PortName's beginPin to endPin with the cable, with a given offset.
As in BNF:
chips_definition_file <- chips_definition chip_connection
chips_definition <- { chip_definition_entries }
chip_connection <- { wire_entries }
chip_definition_entries <- NULL
chip_definition_entries <- chip_definition_entries chip_definition_entry
chip_definition_entry <- WORD : WORD argument_list
argument_list <- NULL
argument_list <- argument_list argument
argument <- , NUMBER
wire_entries <- NULL
wire_entries <- wire_entries wire_entry
wire_entry <- chip_port connections wire_name
chip_port <- WORD . WORD
connections <- NULL
connections <- connections - chip_port_def
chip_port_def <- chip_port
chip_port_def <- chip_port port_offset
port_offset <- [ port_offset_definition ]
port_offset_definition <- NUMBER
port_offset_definition <- NUMBER : NUMBER
port_offset_definition <- NUMBER : NUMBER , NUMBER
port_offset_definition <- NUMBER , NUMBER
wire_name <- NULL
wire_name <- : WORD