duh-schema
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -5,2 +5,3 @@ 'use strict'; | ||
const register = require('./register.js'); | ||
const registerFile = require('./registerFile.js'); | ||
const busInterface = require('./busInterface'); | ||
@@ -30,3 +31,5 @@ | ||
}, | ||
analog: { enum: ['in', 'out', 'inout'] } | ||
analog: { enum: ['in', 'out', 'inout'] }, | ||
displayName: { type: 'string' }, | ||
description: { type: 'string' } | ||
} | ||
@@ -36,2 +39,3 @@ }] | ||
// Each port element describes a single external port on the component. | ||
const ports = { | ||
@@ -51,4 +55,4 @@ oneOf: [{ | ||
properties: { | ||
name, | ||
wire: wire | ||
name, // unique name within the containing ports element | ||
wire | ||
} | ||
@@ -114,2 +118,6 @@ } | ||
items: register | ||
}, | ||
registerFiles: { | ||
type: 'array', | ||
items: registerFile | ||
} | ||
@@ -116,0 +124,0 @@ } |
@@ -23,3 +23,3 @@ 'use strict'; | ||
maxLength: 256, | ||
pattern: '^[a-zA-Z][a-zA-Z0-9_.]*$' | ||
pattern: '^[a-zA-Z][a-zA-Z0-9_.-]*$' | ||
}; | ||
@@ -26,0 +26,0 @@ |
'use strict'; | ||
const {id, uint, int, access, expression} = require('./primitive.js'); | ||
const field = require('./field.js'); | ||
@@ -17,17 +18,5 @@ const register = { | ||
type: 'array', | ||
items: { | ||
type: 'object', | ||
required: ['bitOffset', 'bitWidth'], | ||
properties: { | ||
// bits: uint, | ||
bitOffset: {oneOf: [expression, uint]}, // base % regWidth in bits | ||
bitWidth: {oneOf: [expression, uint]}, // in bits | ||
name: id, | ||
desc: { type: 'string' }, | ||
attr: { type: 'string' }, | ||
access: access, | ||
resetValue: int | ||
} | ||
} | ||
} | ||
items: field | ||
}, | ||
resetValue: int // spiritual | ||
} | ||
@@ -34,0 +23,0 @@ }; |
{ | ||
"name": "duh-schema", | ||
"version": "0.8.0", | ||
"description": "", | ||
"version": "0.9.0", | ||
"description": "DUH Schema", | ||
"main": "lib/index.js", | ||
@@ -21,7 +21,7 @@ "scripts": { | ||
"@drom/eslint-config": "0.10.0", | ||
"ajv": "^6.10.2", | ||
"ajv": "^6.12.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^5.16.0", | ||
"mocha": "^6.2.2", | ||
"nyc": "^14.0.0" | ||
"eslint": "^6.8.0", | ||
"mocha": "^7.1.0", | ||
"nyc": "^15.0.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "eslintConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30685
19
594