From 6f318dcbcbf2777e3e7717a9301833a619944d2a Mon Sep 17 00:00:00 2001 From: "Pavel V. Shatov (Meister)" Date: Mon, 15 Oct 2018 16:05:32 +0300 Subject: Removed move2(), because Verilog can only move one operand a time. Added magic markers to allow automatic parsing. --- curve25519/curve25519_fpga_microcode.cpp | 105 +++++++++++++++++-------------- curve25519/curve25519_fpga_microcode.h | 4 -- 2 files changed, 57 insertions(+), 52 deletions(-) diff --git a/curve25519/curve25519_fpga_microcode.cpp b/curve25519/curve25519_fpga_microcode.cpp index 37d2f8e..e0ddf44 100644 --- a/curve25519/curve25519_fpga_microcode.cpp +++ b/curve25519/curve25519_fpga_microcode.cpp @@ -43,6 +43,14 @@ #include "curve25519_fpga_model.h" +//------------------------------------------------------------------------------ +// Macros +//------------------------------------------------------------------------------ +#define uop_cycle(iters); for (cyc_count=0; cyc_count