techmap inside map_cells stage
authorEddie Hung <eddieh@ece.ubc.ca>
Fri, 5 Apr 2019 19:55:52 +0000 (12:55 -0700)
committerEddie Hung <eddieh@ece.ubc.ca>
Fri, 5 Apr 2019 19:55:52 +0000 (12:55 -0700)
techlibs/xilinx/cells_map.v
techlibs/xilinx/synth_xilinx.cc

index 4173814fde90de5a07804418addc20097b367fb1..c80e51bd0f2f5451e97365ba409cf48371107035 100644 (file)
@@ -134,7 +134,6 @@ module \$__XILINX_SHREG_ (input C, input D, input [31:0] L, input E, output Q, o
       else begin
         \$__XILINX_SHREG_ #(.DEPTH(lower_depth), .INIT(INIT[DEPTH-1:DEPTH-lower_depth]), .CLKPOL(CLKPOL), .ENPOL(ENPOL)) fpga_srl_0 (.C(C), .D(D), .L(L[lower_clog2-1:0]), .E(E), .Q(T0), .SO(T1));
         \$__XILINX_SHREG_ #(.DEPTH(DEPTH-lower_depth), .INIT(INIT[DEPTH-lower_depth-1:0]), .CLKPOL(CLKPOL), .ENPOL(ENPOL)) fpga_srl_1 (.C(C), .D(T1), .L(L[lower_clog2-1:0]), .E(E), .Q(T2), .SO(T3));
-        wire [1023:0] _TECHMAP_DO_ = "techmap -map +/techmap.v";
         assign Q = L[lower_clog2] ? T2 : T0;
       end
       if (DEPTH == 2 * lower_depth)
index 326684daf28eacef86520b0e706d6aec933b95f4..cabf0b76e536f29faa23902468321411a284cb82 100644 (file)
@@ -283,7 +283,7 @@ struct SynthXilinxPass : public Pass
 
                if (check_label(active, run_from, run_to, "map_cells"))
                {
-                       Pass::call(design, "techmap -map +/xilinx/cells_map.v");
+                       Pass::call(design, "techmap -map +/techmap.v -map +/xilinx/cells_map.v");
                        Pass::call(design, "dffinit -ff FDRE Q INIT -ff FDCE Q INIT -ff FDPE Q INIT -ff FDSE Q INIT "
                                        "-ff FDRE_1 Q INIT -ff FDCE_1 Q INIT -ff FDPE_1 Q INIT -ff FDSE_1 Q INIT");
                        Pass::call(design, "clean");