aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ddef800
--- /dev/null
+++ b/README.md
@@ -0,0 +1,6 @@
+modexpng_fpga_model
+===================
+
+Math model of ModExpNG IP core. The model mimics how an FPGA does modular exponentiation.
+
+First use the scripts from the `vector/` folder to generate and format a keypair vector, then edit the <i>DUMP_*</i> switches in `modexpng_fpga_model.py` to dump the desired internal values. The <i>FORCE_OVERFLOW</i> setting artificially forces the virtually neven seen internal interim overflow situation and allows its handler to be tested. You can also un-comment the _#c.dump_banks()_ line and move it anywhere within _sign_using_crt()_ and/or _sign_without_crt()_ to dump the contents of entire core's memory.