Add doc
authorEddie Hung <eddie@fpgeh.com>
Thu, 22 Aug 2019 18:52:24 +0000 (11:52 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 22 Aug 2019 18:52:24 +0000 (11:52 -0700)
passes/pmgen/xilinx_srl.cc

index 45a78a320ae2739030480ccc085bfa45e25e99ed..22fb93e18771c21be700a8f6071e3c656e2424ab 100644 (file)
@@ -168,7 +168,20 @@ struct XilinxSrlPass : public Pass {
                log("\n");
                log("    xilinx_srl [options] [selection]\n");
                log("\n");
-               log("TODO.\n");
+               log("This pass converts chains of built-in flops ($_DFF_[NP]_, $_DFFE_*) as well as\n");
+               log("Xilinx flops (FDRE, FDRE_1) into a $__XILINX_SHREG cell. Chains must be of the\n");
+               log("same type, clock, clock polarity, enable, enable polarity (when relevant).\n");
+               log("Flops with resets cannot be mapped to Xilinx devices and will not be inferred.");
+               log("\n");
+               log("    -minlen N\n");
+               log("        min length of shift register (default = 3)\n");
+               log("\n");
+               log("    -fixed\n");
+               log("        infer fixed-length shift registers.\n");
+               log("\n");
+               log("    -variable\n");
+               log("        infer variable-length shift registers (i.e. fixed-length shifts where\n");
+               log("        each element also fans-out to a $shiftx cell.\n");
                log("\n");
        }