From d58ec6defe5b7a41b5990edcd46eb189e91526fc Mon Sep 17 00:00:00 2001 From: Aliaksei Chapyzhenka Date: Thu, 16 Apr 2020 15:26:35 -0700 Subject: [PATCH 1/5] initial version of SCAN_INSERTION bus definition --- .../0.1.0/SCAN_INSERTION_rtl.json5 | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 diff --git a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 new file mode 100644 index 0000000..d853276 --- /dev/null +++ b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 @@ -0,0 +1,60 @@ +{ + abstractionDefinition: { + vendor: 'sifive.com', + library: 'TEST', + name: 'SCAN_INSERTION_rtl', + version: '0.1.0', + busType: { + vendor: 'sifive.com', + library: 'TEST', + name: 'SCAN_INSERTION', + version: '0.1.0', + }, + ports: { + CLOCK: { + description: 'Clock used during scan', + isClock: true, + wire: { + onMaster: {width: 1, direction: 'out', presence: 'required'}, + onSlave: {width: 1, direction: 'in', presence: 'required'} + } + }, + CLOCK_EN: { + description: 'Clock enable on the scan clock path', + isClock: true, + wire: { + onMaster: {width: 1, direction: 'out'}, + onSlave: {width: 1, direction: 'in'} + } + }, + RESET: { + description: 'Reset used during scan (active high)', + wire: { + onMaster: {width: 1, direction: 'out'}, + onSlave: {width: 1, direction: 'in'} + } + }, + RESETn: { + description: 'Reset used during scan (active low)', + wire: { + onMaster: {width: 1, direction: 'out'}, + onSlave: {width: 1, direction: 'in'} + } + }, + TEST_MODE: { + description: 'switch into test mode (active high)', + wire: { + onMaster: {width: 1, direction: 'out'}, + onSlave: {width: 1, direction: 'in'} + } + }, + TEST_MODEn: { + description: 'switch into test mode (active low)', + wire: { + onMaster: {width: 1, direction: 'out'}, + onSlave: {width: 1, direction: 'in'} + } + }, + } + } +} From eac23e2395c6a9b1579e36adc24ba400fbcdbb04 Mon Sep 17 00:00:00 2001 From: Aliaksei Chapyzhenka Date: Thu, 16 Apr 2020 15:34:21 -0700 Subject: [PATCH 2/5] isClock fix --- .../TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 | 1 - 1 file changed, 1 deletion(-) diff --git a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 index d853276..bd8309b 100644 --- a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 +++ b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 @@ -21,7 +21,6 @@ }, CLOCK_EN: { description: 'Clock enable on the scan clock path', - isClock: true, wire: { onMaster: {width: 1, direction: 'out'}, onSlave: {width: 1, direction: 'in'} From 520762faeef736989f6c812698a8c38f40ff0fcc Mon Sep 17 00:00:00 2001 From: Aliaksei Chapyzhenka Date: Thu, 16 Apr 2020 15:35:51 -0700 Subject: [PATCH 3/5] SI, SO, SE added --- .../0.1.0/SCAN_INSERTION_rtl.json5 | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 index bd8309b..5b2c624 100644 --- a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 +++ b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 @@ -54,6 +54,27 @@ onSlave: {width: 1, direction: 'in'} } }, + SE: { + description: 'scan chain enable', + wire: { + onMaster: {width: 1, direction: 'out'}, + onSlave: {width: 1, direction: 'in'} + } + }, + SI: { + description: 'scan chain input', + wire: { + onMaster: {width: 1, direction: 'out'}, + onSlave: {width: 1, direction: 'in'} + } + }, + SO: { + description: 'scan chain output', + wire: { + onMaster: {width: 1, direction: 'in'}, + onSlave: {width: 1, direction: 'out'} + } + }, } } } From c0f3ab50fa6cf41511947ceefefeda4734e041de Mon Sep 17 00:00:00 2001 From: Aliaksei Chapyzhenka Date: Thu, 16 Apr 2020 16:34:00 -0700 Subject: [PATCH 4/5] support multibit SE, SI, SO, TEST_MODE --- .../0.1.0/SCAN_INSERTION_rtl.json5 | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 index 5b2c624..112df33 100644 --- a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 +++ b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 @@ -41,38 +41,31 @@ } }, TEST_MODE: { - description: 'switch into test mode (active high)', + description: 'switch into test mode', wire: { - onMaster: {width: 1, direction: 'out'}, - onSlave: {width: 1, direction: 'in'} - } - }, - TEST_MODEn: { - description: 'switch into test mode (active low)', - wire: { - onMaster: {width: 1, direction: 'out'}, - onSlave: {width: 1, direction: 'in'} + onMaster: {direction: 'out'}, + onSlave: {direction: 'in'} } }, SE: { description: 'scan chain enable', wire: { - onMaster: {width: 1, direction: 'out'}, - onSlave: {width: 1, direction: 'in'} + onMaster: {direction: 'out'}, + onSlave: {direction: 'in'} } }, SI: { description: 'scan chain input', wire: { - onMaster: {width: 1, direction: 'out'}, - onSlave: {width: 1, direction: 'in'} + onMaster: {direction: 'out'}, + onSlave: {direction: 'in'} } }, SO: { description: 'scan chain output', wire: { - onMaster: {width: 1, direction: 'in'}, - onSlave: {width: 1, direction: 'out'} + onMaster: {direction: 'in'}, + onSlave: {direction: 'out'} } }, } From 5eb561aad647a3489634decf6bdd705c159bbb73 Mon Sep 17 00:00:00 2001 From: Aliaksei Chapyzhenka Date: Mon, 20 Apr 2020 15:13:59 -0700 Subject: [PATCH 5/5] removed RESETn port --- .../TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 index 112df33..b430b76 100644 --- a/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 +++ b/specs/sifive.com/TEST/SCAN_INSERTION/0.1.0/SCAN_INSERTION_rtl.json5 @@ -33,13 +33,6 @@ onSlave: {width: 1, direction: 'in'} } }, - RESETn: { - description: 'Reset used during scan (active low)', - wire: { - onMaster: {width: 1, direction: 'out'}, - onSlave: {width: 1, direction: 'in'} - } - }, TEST_MODE: { description: 'switch into test mode', wire: {