IP PortfolioDatapath and DSPinteger arithmetic

of_cmp

Magnitude comparator

Maturity simulatedTargets FPGA + ASICDifficulty EasyPriority 1

Full magnitude comparator (signed or unsigned) producing lt/le/gt/ge/eq/ne from a single subtractor.

Simulated. The RTL is lint clean and passes its self-checking testbench against a reference model in simulation. It has not been run on an FPGA board or in silicon.

Interfaces

PortDirectionKindWidthNotes
ainparallel32 
binparallel32 
flagsoutparallel6 

Standards

No external standard applies.

More in integer arithmetic

IDBlockMaturity
of_add_rippleRipple-carry addersimulated
of_add_claCarry-lookahead addersimulated
of_add_cselCarry-select addersimulated
of_add_kogge_stoneKogge-Stone parallel-prefix adderfpga-routed
of_add_brent_kungBrent-Kung parallel-prefix addersimulated
of_add_sklanskySklansky parallel-prefix addersimulated
of_addsubAdder/subtractor with flagssimulated
of_incIncrementer / decrementersimulated
of_absAbsolute valuesimulated
of_minmaxN-input min/max with indexsimulated