diff options
author | Dan Ravensloft <dan.ravensloft@gmail.com> | 2020-04-15 14:28:35 +0100 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2020-04-15 16:15:25 +0200 |
commit | 43cc6bd8a10b47759f4d0d1916d3b7ad108e4486 (patch) | |
tree | 69e5066711d711b2c0ecc6d211736c299860588c /techlibs | |
parent | d7da491002bd5a5f3266222f977d848b7ca871b5 (diff) | |
download | yosys-43cc6bd8a10b47759f4d0d1916d3b7ad108e4486.tar.gz yosys-43cc6bd8a10b47759f4d0d1916d3b7ad108e4486.tar.bz2 yosys-43cc6bd8a10b47759f4d0d1916d3b7ad108e4486.zip |
synth_intel_alm: VQM support
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/intel_alm/common/quartus_rename.v | 8 | ||||
-rw-r--r-- | techlibs/intel_alm/synth_intel_alm.cc | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/techlibs/intel_alm/common/quartus_rename.v b/techlibs/intel_alm/common/quartus_rename.v index e69eefeb7..d9961c174 100644 --- a/techlibs/intel_alm/common/quartus_rename.v +++ b/techlibs/intel_alm/common/quartus_rename.v @@ -12,12 +12,8 @@ MISTRAL_ALUT2 #(.LUT(4'b0000)) _TECHMAP_REPLACE_ (.A(1'b1), .B(1'b1), .Q(Q)); endmodule -module MISTRAL_FF(input D, CLK, ACn, ALD, AD, EN, output reg Q); +module MISTRAL_FF(input DATAIN, CLK, ACLR, ENA, SCLR, SLOAD, SDATA, output reg Q); -parameter INIT = 1'b0; - -localparam [1023:0] INIT_STR = (INIT !== 1'b1) ? "low" : "high"; - -dffeas #(.power_up(INIT_STR), .is_wysiwyg("true")) _TECHMAP_REPLACE_ (.d(D), .clk(CLK), .clrn(ACn), .aload(ALD), .asdata(AD), .ena(EN), .q(Q)); +dffeas #(.power_up("low"), .is_wysiwyg("true")) _TECHMAP_REPLACE_ (.d(DATAIN), .clk(CLK), .clrn(ACLR), .ena(ENA), .sclr(SCLR), .sload(SLOAD), .asdata(SDATA), .q(Q)); endmodule diff --git a/techlibs/intel_alm/synth_intel_alm.cc b/techlibs/intel_alm/synth_intel_alm.cc index ee7cb361b..47aa11500 100644 --- a/techlibs/intel_alm/synth_intel_alm.cc +++ b/techlibs/intel_alm/synth_intel_alm.cc @@ -223,6 +223,7 @@ struct SynthIntelALMPass : public ScriptPass { if (check_label("quartus")) { if (quartus || help_mode) { + run("setundef -zero"); run("hilomap -singleton -hicell __MISTRAL_VCC Q -locell __MISTRAL_GND Q"); run("techmap -map +/intel_alm/common/quartus_rename.v"); run(stringf("techmap -map +/intel_alm/%s/quartus_rename.v", family_opt.c_str())); |