aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/sf2/synth_sf2.cc
diff options
context:
space:
mode:
authorDan Ravensloft <dan.ravensloft@gmail.com>2020-07-04 21:20:26 +0100
committerDan Ravensloft <dan.ravensloft@gmail.com>2020-07-09 21:28:52 +0100
commit7dc0439de426483013a445122643e930b0bd0fa2 (patch)
tree85f944570894712d6989f2cf8ab4704ec69909c3 /techlibs/sf2/synth_sf2.cc
parenta9b61080a409d3ad2c8ff4a9bbef9ba1c9c1d194 (diff)
downloadyosys-7dc0439de426483013a445122643e930b0bd0fa2.tar.gz
yosys-7dc0439de426483013a445122643e930b0bd0fa2.tar.bz2
yosys-7dc0439de426483013a445122643e930b0bd0fa2.zip
sf2: replace sf2_iobs with {clkbuf,iopad}map
Diffstat (limited to 'techlibs/sf2/synth_sf2.cc')
-rw-r--r--techlibs/sf2/synth_sf2.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/techlibs/sf2/synth_sf2.cc b/techlibs/sf2/synth_sf2.cc
index 6b2a3f9b8..096450ad3 100644
--- a/techlibs/sf2/synth_sf2.cc
+++ b/techlibs/sf2/synth_sf2.cc
@@ -209,10 +209,12 @@ struct SynthSf2Pass : public ScriptPass
if (check_label("map_iobs"))
{
- if (help_mode)
- run("sf2_iobs [-clkbuf]", "(unless -noiobs)");
- else if (iobs)
- run(clkbuf ? "sf2_iobs -clkbuf" : "sf2_iobs");
+ if (help_mode || iobs) {
+ if (help_mode || clkbuf) {
+ run("clkbufmap -buf CLKINT Y:A -inpad CLKBUF Y:PAD", "(if -clkbuf, unless -noiobs)");
+ }
+ run("iopadmap -bits -inpad INBUF Y:PAD -outpad OUTBUF D:PAD -toutpad TRIBUFF E:D:PAD -tinoutpad BIBUF E:Y:D:PAD", "(unless -noiobs");
+ }
run("clean");
}