Skip to content

Commit 6d450bd

Browse files
authored
Merge pull request chipsalliance#5 from litghost/add_lut_definitions
Add LUT definitions to DeviceResources.
2 parents edd4aac + 7c27309 commit 6d450bd

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

interchange/DeviceResources.capnp

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ struct Device {
8484
packages @11 : List(Package);
8585
constants @12 : Constants;
8686
constraints @13 : Constraints;
87+
lutDefinitions @14 : LutDefinitions;
8788

8889
#######################################
8990
# Placement definition objects
@@ -510,4 +511,35 @@ struct Device {
510511
routedTags @1 :List(RoutedTag);
511512
cellConstraints @2 :List(CellConstraint);
512513
}
514+
515+
######################################
516+
# LUT definitions
517+
######################################
518+
struct LutDefinitions {
519+
struct LutCell {
520+
cell @0 : Text;
521+
inputPins @1 : List(Text);
522+
}
523+
524+
struct LutBel {
525+
name @0 : Text;
526+
inputPins @1 : List(Text);
527+
outputPin @2 : Text;
528+
lowBit @3 : Int8;
529+
highBit @4 : Int8;
530+
}
531+
532+
struct LutElement {
533+
width @0 : Int8;
534+
bels @1 : List(LutBel);
535+
}
536+
537+
struct LutElements {
538+
site @0 : Text;
539+
luts @1 : List(LutElement);
540+
}
541+
542+
lutCells @0 : List(LutCell);
543+
lutElements @1 : List(LutElements);
544+
}
513545
}

0 commit comments

Comments
 (0)