aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/site_router_tests/lut/test.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'fpga_interchange/site_router_tests/lut/test.yaml')
-rw-r--r--fpga_interchange/site_router_tests/lut/test.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/fpga_interchange/site_router_tests/lut/test.yaml b/fpga_interchange/site_router_tests/lut/test.yaml
new file mode 100644
index 0000000..e299d81
--- /dev/null
+++ b/fpga_interchange/site_router_tests/lut/test.yaml
@@ -0,0 +1,28 @@
+test_case:
+ - place:
+ # Place cell `lut_2` at BEL `SLICE_X1Y8.SLICEL/A6LUT`
+ lut_1: SLICE_X1Y8.SLICEL/A6LUT
+ - test:
+ # Make sure this placement is accept
+ SLICE_X1Y8.SLICEL/A6LUT: true
+ - unplace:
+ SLICE_X1Y8.SLICEL/A6LUT
+ # - place:
+ # lut_1: SLICE_X1Y8.SLICEL/B6LUT
+ # - test:
+ # # Make sure this placement is accept
+ # SLICE_X1Y8.SLICEL/A6LUT: true
+ # SLICE_X1Y8.SLICEL/B6LUT: true
+ # - place:
+ # lut_1: SLICE_X1Y8.SLICEL/A6LUT
+ # lut_2: SLICE_X1Y8.SLICEL/A5LUT
+ # - test:
+ # # The site is now invalid because too many signals into the A6/A5LUT
+ # SLICE_X1Y8.SLICEL/A6LUT: false
+ # SLICE_X1Y8.SLICEL/A5LUT: false
+ # - unplace:
+ # - lut_2
+ # - test:
+ # # By removing lut_2, the site is valid again
+ # SLICE_X1Y8.SLICEL/A6LUT: true
+ # SLICE_X1Y8.SLICEL/A5LUT: true