aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
diff options
context:
space:
mode:
authorPepijn de Vos <pepijndevos@gmail.com>2019-11-19 15:53:44 +0100
committerPepijn de Vos <pepijndevos@gmail.com>2019-11-19 15:53:44 +0100
commit8ab412eb16b1d4f98117247bf85e0c37627ee459 (patch)
tree1adc1c347057751f515518ba780bb5aa2203d263 /techlibs
parentdd8c7e1ddda152e9c06d4b950564eb4aa1051c98 (diff)
downloadyosys-8ab412eb16b1d4f98117247bf85e0c37627ee459.tar.gz
yosys-8ab412eb16b1d4f98117247bf85e0c37627ee459.tar.bz2
yosys-8ab412eb16b1d4f98117247bf85e0c37627ee459.zip
Remove dff init altogether
The hardware does not actually support it. In reality it is always initialised to its reset value.
Diffstat (limited to 'techlibs')
-rw-r--r--techlibs/gowin/cells_map.v5
-rw-r--r--techlibs/gowin/synth_gowin.cc1
2 files changed, 3 insertions, 3 deletions
diff --git a/techlibs/gowin/cells_map.v b/techlibs/gowin/cells_map.v
index 881c2e9bb..9845e56a7 100644
--- a/techlibs/gowin/cells_map.v
+++ b/techlibs/gowin/cells_map.v
@@ -1,9 +1,10 @@
-//TODO all DFF* have INIT
+//All DFF* have INIT, but the hardware is always initialised to the reset
+//value regardless. The parameter is ignored.
// DFFN D Flip-Flop with Negative-Edge Clock
module \$_DFF_N_ (input D, C, output Q); DFFN _TECHMAP_REPLACE_ (.D(D), .Q(Q), .CLK(C)); endmodule
// DFF D Flip-Flop
-module \$_DFF_P_ #(parameter INIT = 1'b0) (input D, C, output Q); DFF #(.INIT(INIT)) _TECHMAP_REPLACE_ (.D(D), .Q(Q), .CLK(C)); endmodule
+module \$_DFF_P_ (input D, C, output Q); DFF _TECHMAP_REPLACE_ (.D(D), .Q(Q), .CLK(C)); endmodule
// DFFE D Flip-Flop with Clock Enable
module \$_DFFE_PP_ (input D, C, E, output Q); DFFE _TECHMAP_REPLACE_ (.D(D), .Q(Q), .CLK(C), .CE(E)); endmodule
diff --git a/techlibs/gowin/synth_gowin.cc b/techlibs/gowin/synth_gowin.cc
index bb6d44e00..3c1426414 100644
--- a/techlibs/gowin/synth_gowin.cc
+++ b/techlibs/gowin/synth_gowin.cc
@@ -238,7 +238,6 @@ struct SynthGowinPass : public ScriptPass
run("hilomap -singleton -hicell VCC V -locell GND G");
run("iopadmap -bits -inpad IBUF O:I -outpad OBUF I:O "
"-toutpad TBUF OEN:I:O -tinoutpad IOBUF OEN:O:I:IO", "(unless -noiopads)");
- run("dffinit -ff DFF Q INIT");
run("clean");
}