summaryrefslogtreecommitdiffstats
path: root/interchange
diff options
context:
space:
mode:
authorKarol Gugala <kgugala@antmicro.com>2021-04-20 11:23:38 +0200
committerGitHub <noreply@github.com>2021-04-20 11:23:38 +0200
commit5208d794d318e9151b93120d7e5ba75d8aef45e7 (patch)
tree9709b44d954394d0e49f2274adc95c9c52cdfe0d /interchange
parent71720ab240136076ea0d22424f1ab88be0ba00f9 (diff)
parenta25240d8c39e7260ef71ea8724dc2f4d09b54d08 (diff)
downloadfpga-interchange-schema-5208d794d318e9151b93120d7e5ba75d8aef45e7.tar.gz
fpga-interchange-schema-5208d794d318e9151b93120d7e5ba75d8aef45e7.tar.bz2
fpga-interchange-schema-5208d794d318e9151b93120d7e5ba75d8aef45e7.zip
Merge pull request #35 from gatecat/cell-pin-const
Add specification of default cell pin values
Diffstat (limited to 'interchange')
-rw-r--r--interchange/DeviceResources.capnp30
1 files changed, 30 insertions, 0 deletions
diff --git a/interchange/DeviceResources.capnp b/interchange/DeviceResources.capnp
index 0b22a41..5a52bec 100644
--- a/interchange/DeviceResources.capnp
+++ b/interchange/DeviceResources.capnp
@@ -339,6 +339,33 @@ struct Device {
constant @2 : ConstantType;
}
+ # These structures are used to define default constant values for unused
+ # or missing cell pins. For each cell type, we have a list of pins and
+ # what to do with those pins (which will be to tie it to 0 or 1 in most
+ # cases).
+ enum CellPinValue {
+ # leave floating
+ float @0;
+ # connect to ground
+ gnd @1;
+ # connect to vcc
+ vcc @2;
+ }
+
+ struct DefaultCellConnection {
+ # What is the name of this cell pin?
+ name @0 : StringIdx $stringRef();
+ # The default constant value for the pin if missing or disconnected
+ value @1 : CellPinValue;
+ }
+
+ struct DefaultCellConnections {
+ # The type of the cell we're providing a list of defaults for
+ cellType @0 : StringIdx $stringRef();
+ # The list of default cell pin values
+ pins @1 : List(DefaultCellConnection);
+ }
+
# When either constant signal can be routed to an input site pin, which
# constant should be used by default?
#
@@ -383,6 +410,9 @@ struct Device {
anyName @10 : Void;
name @11 : StringIdx $stringRef();
}
+
+ # How to treat missing/disconnected cell pins
+ defaultCellConns @12 : List(DefaultCellConnections);
}
######################################