diff options
author | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2017-07-18 02:14:27 +0300 |
---|---|---|
committer | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2017-07-18 02:14:27 +0300 |
commit | 2db58a7ba317da318eca5ae19dcc0e4899c423e1 (patch) | |
tree | 81673c7e24181fbc77f360b9546b28a1a66ed7fe /modexp_fpga_model.h | |
parent | 9e564305d8941bceafc1b1c1d6d611b642c6dce9 (diff) |
Changes to the model:
* Follow what Verilog does more closely: FPGA can't do PP = P * P, because
it can't read from two different block mem P locations at the same time,
we have to do P1 = P2 = P, PP = P1 * P2
* Updated the test vector script to format additional quantities to help
debug Verilog exponentiation module
* Added the trick suggested by Bernd Paysan to help better conceal whether we're
discarding multiplication result when the current exponent bit is not set
Diffstat (limited to 'modexp_fpga_model.h')
-rw-r--r-- | modexp_fpga_model.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modexp_fpga_model.h b/modexp_fpga_model.h index 2a91d32..567b625 100644 --- a/modexp_fpga_model.h +++ b/modexp_fpga_model.h @@ -58,6 +58,12 @@ typedef uint64_t _WIDE_WORD; // only used internally to mimic DSP slice operati //----------------------------------------------------------------
+// Power Consumption Masking Constant
+//----------------------------------------------------------------
+#define POWER_MASK 0x5A5A5A5A
+
+
+//----------------------------------------------------------------
// Handy values
//----------------------------------------------------------------
|