This is my first question ever on stackexchange, so if i am unable to provide enough information or if i do anything wrong, please let me know.
I want to create a 5x5 keypad using 25 simple buttons, i could connect each column to a decoder output and record the decoder input to get the column number and connect the rows to a multiplexer to get the column number ( i think i understand this part), but i want to convert the row and column number to a 5 bit number (0-24), to represent the pressed button. Basically i want to apply this formula using discrete logic: [(5*row)+column)]. For Example coordinate (0,0) will be 0 and coordinate (3,4) will be 19. Also assume that only one button is pressed at a time.
Designing such a circuit through kmapping requires alot of hardware (ICs), is there a way to implement this using less hardware (ICs)?
This is part of a project, only micro-controllers are not allowed, any other TTL hardware can be used.