From 7b2788f6dfae42fa60229fdf04ce3a70dbdd6135 Mon Sep 17 00:00:00 2001 From: Jiuyang Liu Date: Sun, 25 Apr 2021 09:00:59 +0000 Subject: [PATCH] fix critical warning for Vivado 2020.2. --- src/main/scala/shell/xilinx/XilinxShell.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/shell/xilinx/XilinxShell.scala b/src/main/scala/shell/xilinx/XilinxShell.scala index 72ed6476..7bf01768 100644 --- a/src/main/scala/shell/xilinx/XilinxShell.scala +++ b/src/main/scala/shell/xilinx/XilinxShell.scala @@ -29,9 +29,9 @@ class XDC(val name: String) } def addIOB(io: IOPin) { if (io.isOutput) { - addConstraint(s"set_property IOB {TRUE} [ get_cells -of_objects [ all_fanin -flat -startpoints_only ${io.sdcPin}]]") + addConstraint(s"set_property IOB {TRUE} ${io.sdcPin}") } else { - addConstraint(s"set_property IOB {TRUE} [ get_cells -of_objects [ all_fanout -flat -endpoints_only ${io.sdcPin}]]") + addConstraint(s"set_property IOB {TRUE} ${io.sdcPin}") } } def addSlew(io: IOPin, speed: String) {