Computer Organization & Embedded System — Hardware–Software Design Issues on Embedded System, NEC licence examination syllabus (Nepal Engineering Council).
The GCD calculator every embedded systems textbook uses — and for good reason.
What if, instead of buying a general CPU and writing software for it, you built a tiny circuit that does ONE calculation and absolutely nothing else — no operating system, no instruction fetch overhead, just pure dedicated logic? That's a single-purpose processor.
It's built from an FSMD (Finite State Machine with Datapath): the datapath does the actual computation (registers, comparators, adders), and the controller (an FSM) sequences when each datapath operation happens.
Datapath for this needs: two registers (x, y), a comparator (x==y? and x>y?), and a subtractor. Controller (the FSM above) decides, each clock cycle, whether to compare or subtract, based on the current state.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loading…