aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange
diff options
context:
space:
mode:
authorMaciej Dudek <mdudek@antmicro.com>2021-07-21 18:43:11 +0200
committerMaciej Dudek <mdudek@antmicro.com>2021-07-21 18:43:11 +0200
commit0e838c3cea0db3babf2694e3798045e0d8a37a87 (patch)
treedfb51f4a8d9b1a13cc8c96ad6a460ceb5ddc7973 /fpga_interchange
parent391248e031fa8ad42cc70476f8a079ea7dd3a05f (diff)
downloadnextpnr-0e838c3cea0db3babf2694e3798045e0d8a37a87.tar.gz
nextpnr-0e838c3cea0db3babf2694e3798045e0d8a37a87.tar.bz2
nextpnr-0e838c3cea0db3babf2694e3798045e0d8a37a87.zip
Add dummy function to parse creat_clock in XDC files
Signed-off-by: Maciej Dudek <mdudek@antmicro.com>
Diffstat (limited to 'fpga_interchange')
-rw-r--r--fpga_interchange/xdc.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/fpga_interchange/xdc.cc b/fpga_interchange/xdc.cc
index 9085615b..5f43ed3c 100644
--- a/fpga_interchange/xdc.cc
+++ b/fpga_interchange/xdc.cc
@@ -182,6 +182,12 @@ static int set_property(ClientData data, Tcl_Interp *interp, int objc, Tcl_Obj *
return TCL_OK;
}
+static int create_clock(ClientData data, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
+{
+ // FIXME: add implementation
+ return TCL_OK;
+}
+
TclInterp::TclInterp(Context *ctx)
{
interp = Tcl_CreateInterp();
@@ -201,6 +207,7 @@ TclInterp::TclInterp(Context *ctx)
Tcl_CreateObjCommand(interp, "get_ports", get_ports, ctx, nullptr);
Tcl_CreateObjCommand(interp, "get_cells", get_cells, ctx, nullptr);
Tcl_CreateObjCommand(interp, "set_property", set_property, ctx, nullptr);
+ Tcl_CreateObjCommand(interp, "create_clock", create_clock, ctx, nullptr);
}
TclInterp::~TclInterp() { Tcl_DeleteInterp(interp); }