CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Combinational Logic

Modulo Arithmetic

MediumLogic CircuitAnalyze

Hardware synthesizers map the modulo operator differently depending on the constant operand. The design below contains an 8-bit unsigned input A and two 8-bit outputs Y and Z.

The outputs are driven by the following continuous assignments: assign Y = A % 8; assign Z = A % 10;

Analyze the synthesized hardware for both expressions and evaluate their impact on timing closure. Determine the logic depth and gate-level implementation differences between the two mathematical operations.

Constraints

  • Input A is an 8-bit unsigned wire.
  • The design is synthesized targeting a standard ASIC cell library.
  • No multi-cycle paths or sequential logic are defined.

Topics

arithmeticsynthesisverilogtiming-closure

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

Sign in to solveSee what Pro unlocks

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Related problems

  • Binary to HexEasy
  • 1-to-4 Demultiplexer from AND and NOT GatesEasy
  • 2-to-4 Line Decoder with Active-High EnableEasy
  • Hex Nibble to BinaryEasy
  • Odd Parity Bit Generator for 3-bit DataEasy
  • Full Adder from Half AddersEasy
  • Signed Overflow Detection in Two's Complement AdditionMedium
  • Two's Complement: Encode a Negative DecimalEasy

Browse all problems · Learning tracks