u plz refer to t k ghosh cmputr organization book new edition..in that it is clearly defined with flowchart