From aebd060a063800a709527fc1a4e202bfd8177236 Mon Sep 17 00:00:00 2001 From: eddieh-xlnx Date: Fri, 20 Sep 2024 11:30:20 -0700 Subject: [PATCH] [TestBEL] Add testDIFFsAreNotFF() (#1062) * [TestBEL] Add testDIFFRXTXisNotFF() Signed-off-by: Eddie Hung * Rename to testDIFFsAreNotFF() and add US+ Signed-off-by: Eddie Hung --------- Signed-off-by: Eddie Hung Co-authored-by: Chris Lavin --- .../src/com/xilinx/rapidwright/device/TestBEL.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/src/com/xilinx/rapidwright/device/TestBEL.java b/test/src/com/xilinx/rapidwright/device/TestBEL.java index 99ed65ed8..fb1d00364 100644 --- a/test/src/com/xilinx/rapidwright/device/TestBEL.java +++ b/test/src/com/xilinx/rapidwright/device/TestBEL.java @@ -70,4 +70,18 @@ public void testIsSliceFFClkMod() { Assertions.assertTrue(b.isSliceFFClkMod()); Assertions.assertFalse(b.isFF()); } + + @ParameterizedTest + @CsvSource({ + "xcvc1902,IOB_X0Y0,DIFFRXTX", + "xcvu3p,HPIOBDIFFINBUF_X0Y0,DIFFINBUF", + "xcvu3p,HPIOBDIFFOUTBUF_X0Y0,DIFFOUTBUF" + }) + public void testDIFFsAreNotFF(String partName, String siteName, String belName) { + Device d = Device.getDevice(partName); + Site s = d.getSite(siteName); + BEL b = s.getBEL(belName); + Assertions.assertNotNull(b); + Assertions.assertFalse(b.isFF()); + } }