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
|
{
"type": "object",
"properties": {
"schema": { "const": "rfnoc_imagebuilder_args" },
"copyright": { "type": "string" },
"version": { "type": "string" },
"license": { "type": "string" },
"device": { "type": "string" },
"image_core_name": { "type": "string" },
"default_target": { "type": "string" },
"rfnoc_version": { "type": "string" },
"chdr_width": { "enum": [64, 128, 256, 512] },
"block_chdr_width": { "enum": [64, 128, 256, 512] },
"crossbar_routes": { "type": "array" },
"stream_endpoints": { "$ref": "#/definitions/stream_endpoints" },
"noc_blocks": { "$ref": "#/definitions/noc_blocks" },
"clk_domains": { "type": "array",
"items": { "$ref": "#/definitions/connection" } },
"connections": { "type": "array",
"items": { "$ref": "#/definitions/connection" } }
},
"required": ["schema",
"chdr_width",
"noc_blocks"],
"additionalProperties": false,
"definitions": {
"stream_endpoints": {
"type": "object",
"patternProperties": {
".*": { "$ref": "#/definitions/stream_endpoint" }
}
},
"noc_blocks": {
"type": "object",
"patternProperties": {
".*": { "$ref": "#/definitions/noc_block" }
}
},
"stream_endpoint": {
"type": "object",
"properties": {
"chdr_width":{ "enum": [64, 128, 256, 512] },
"ctrl": { "type": "boolean" },
"data": { "type": "boolean" },
"num_data_i":{ "type": "integer", "minimum": 1 },
"num_data_o":{ "type": "integer", "minimum": 1 },
"buff_size": { "type": "integer", "minimum": 0 },
"buff_size_bytes": { "type": "integer", "minimum": 0 }
},
"additionalProperties": false,
"not": {
"anyOf": [
{"required": ["buff_size", "buff_size_bytes"]}
]
}
},
"noc_block": {
"type": "object",
"properties": {
"block_desc": { "type": "string", "pattern": "^.*\\.yml" },
"parameters": { "$ref": "#/definitions/parameter" },
"ctrl_clock": { "type": "string", "pattern": "[a-z0-9_.]+"},
"timebase_clock": { "type": "string", "pattern": "[a-z0-9_.]+"}
},
"required": ["block_desc"],
"additionalProperties": false
},
"parameter": {
"type": "object"
},
"connection": {
"type": "object",
"properties": {
"srcblk": { "type": "string", "minLength": 1 },
"srcport": { "type": "string", "minLength": 1 },
"dstblk": { "type": "string", "minLength": 1 },
"dstport": { "type": "string", "minLength": 1 }
},
"required": ["srcblk", "srcport", "dstblk", "dstport"],
"additionalProperties": false
}
}
}
|