n-bit incrementer X41839


Statement
 

pdf   zip   verilog

html

Design a circuit that receives an n-bit number and produces the same number increased by one unit (mod 2n). The number of bits must be a parameter of the module, with the default value as shown in the specification.

Specification

module incr(in, out); parameter N=16; input [N-1:0] in; output [N-1:0] out;

Input

  • in represents the n-bit input number.

Output

  • out represents the n-bit output number.
Information
Author
Jordi Cortadella
Language
English
Official solutions
Unknown. This problem is being checked.
User solutions
Verilog