From 20ca612b2600530ce901009b3d1b9ef0e05b7438 Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Mon, 22 Nov 2021 15:16:11 +0000 Subject: [PATCH] Added iotype comment l18 --- src/spec/jtag.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spec/jtag.py b/src/spec/jtag.py index efda280..e9bc75d 100644 --- a/src/spec/jtag.py +++ b/src/spec/jtag.py @@ -14,13 +14,14 @@ iotypes = {'-': IOType.In, '>': IOType.TriOut, '*': IOType.InTriOut, } - +# Resources +# nmigen Resources has a different encoding for direction: "i", "o", "io", "oe" resiotypes = {'i': IOType.In, 'o': IOType.Out, 'oe': IOType.TriOut, 'io': IOType.InTriOut, } - +# How many bits in each signal type scanlens = {IOType.In: 1, IOType.Out: 1, IOType.TriOut: 2, -- 2.30.2