Add doc on pattern detector for overflow
authorEddie Hung <eddie@fpgeh.com>
Wed, 18 Sep 2019 19:35:24 +0000 (12:35 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 18 Sep 2019 19:35:24 +0000 (12:35 -0700)
passes/pmgen/xilinx_dsp.cc

index 8500a60722f405fe28fec17ba5f640238711715e..5af48e4d2cf51b01a79f49314bec04f8b43e89ee 100644 (file)
@@ -2,6 +2,7 @@
  *  yosys -- Yosys Open SYnthesis Suite
  *
  *  Copyright (C) 2012  Clifford Wolf <clifford@clifford.at>
+ *                2019  Eddie Hung    <eddie@fpgeh.com>
  *
  *  Permission to use, copy, modify, and/or distribute this software for any
  *  purpose with or without fee is hereby granted, provided that the above
@@ -519,6 +520,10 @@ struct XilinxDspPass : public Pass {
                log("the add/subtract operator will cause those operations to be implemented using\n");
                log("the 'SIMD' feature of DSPs.\n");
                log("\n");
+               log("Experimental feature: the presence of a `$ge' cell attached to the registered\n");
+               log("P output implementing the operation \"(P >= <power-of-2>)\" will be transformed\n");
+               log("into using the DSP48E1's pattern detector feature for overflow detection.\n");
+               log("\n");
        }
        void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
        {