diff options
author | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2018-04-03 11:38:17 +0300 |
---|---|---|
committer | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2018-04-03 11:38:17 +0300 |
commit | 5e78217a13bcda8d06db5f4d8c7446bcef940cba (patch) | |
tree | 8cef6b9b382ce7dda22ac733baeeef10c159a515 /test_vectors/format_test_vectors.py | |
parent | ddf42e1abc77ae11757f69d8489f0ce9d6a9c0d0 (diff) |
Added missing symbols.
Diffstat (limited to 'test_vectors/format_test_vectors.py')
-rw-r--r-- | test_vectors/format_test_vectors.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test_vectors/format_test_vectors.py b/test_vectors/format_test_vectors.py index 66f93f8..57f2de1 100644 --- a/test_vectors/format_test_vectors.py +++ b/test_vectors/format_test_vectors.py @@ -88,22 +88,22 @@ def format_verilog_include(f, curve, da, qax, qay, db, qbx, qby, sx, sy): if curve == CURVE_P256: curve_str = "P_256" msb_index = "255" - + if curve == CURVE_P384: curve_str = "P_384" msb_index = "383" - + # write all numbers in vector - format_verilog_concatenation(f, da, "localparam [" + msb_index + ":0] " + curve_str + "_DA" + " \n") - format_verilog_concatenation(f, qax, "localparam [" + msb_index + ":0] " + curve_str + "_QA_X" + " \n") - format_verilog_concatenation(f, qay, "localparam [" + msb_index + ":0] " + curve_str + "_QA_Y" + " \n") - - format_verilog_concatenation(f, db, "localparam [" + msb_index + ":0] " + curve_str + "_DB" + " \n") - format_verilog_concatenation(f, qbx, "localparam [" + msb_index + ":0] " + curve_str + "_QB_X" + " \n") - format_verilog_concatenation(f, qby, "localparam [" + msb_index + ":0] " + curve_str + "_QB_Y" + " \n") + format_verilog_concatenation(f, da, "localparam [" + msb_index + ":0] " + curve_str + "_DA" + " =\n") + format_verilog_concatenation(f, qax, "localparam [" + msb_index + ":0] " + curve_str + "_QA_X" + " =\n") + format_verilog_concatenation(f, qay, "localparam [" + msb_index + ":0] " + curve_str + "_QA_Y" + " =\n") + + format_verilog_concatenation(f, db, "localparam [" + msb_index + ":0] " + curve_str + "_DB" + " =\n") + format_verilog_concatenation(f, qbx, "localparam [" + msb_index + ":0] " + curve_str + "_QB_X" + " =\n") + format_verilog_concatenation(f, qby, "localparam [" + msb_index + ":0] " + curve_str + "_QB_Y" + " =\n") - format_verilog_concatenation(f, sx, "localparam [" + msb_index + ":0] " + curve_str + "_S_X" + " \n") - format_verilog_concatenation(f, sy, "localparam [" + msb_index + ":0] " + curve_str + "_S_Y" + " \n") + format_verilog_concatenation(f, sx, "localparam [" + msb_index + ":0] " + curve_str + "_S_X" + " =\n") + format_verilog_concatenation(f, sy, "localparam [" + msb_index + ":0] " + curve_str + "_S_Y" + " =\n") # # nicely format multi-word integer into C array initializer |