Modular Exponentiation
Medium · Combinational · SystemVerilog · VHDL
Design a module that computes modular exponentiation.
y is a^b mod m, with a, b and m read as unsigned integers. When m is 0, y is 0.
The module is combinational.
Medium · Combinational · SystemVerilog · VHDL
Design a module that computes modular exponentiation.
y is a^b mod m, with a, b and m read as unsigned integers. When m is 0, y is 0.
The module is combinational.