brainbaby
- 232
- 5
- TL;DR Summary
- I want to design a hardware circuit for a library system which fetches books by maintaining a catalog of all books & referring the catalog each time the location of book changes. This ressembles to handling interrupts using Interrupt vector table.
Implementing interrupt handling mechanism using interrupt vector table for a daily life (real time) example.
I want to design a hardware which implements a logic of accessing books from a library system.
The library system contains 3 shelves, 3 racks on each shelf, & some books.
The aim of the circuit would be to fetch the desired book from the shelf based on using a catalog table. The catalog table consist of a catalog number & the book address. Each book has a unique catalog no. associated with it.
I have assumed two scenarios.
1st- Initial location of the books is made know to the CPU.
2nd- the book of interest which we want to access is stored to a new shelf.
Now this fetching can be achieved by two approaches:
1. Making the cpu remember the change of the location of a book each time when the location is changed will cost cpu resources & will be inefficient.
2. By maintaining a catalog table which is updated each time a book location is changed, the cpu just have to look at the catalog table & just have to execute a jump operation to directly fetch the desired book.
Approach 2nd is also called an interrupt vector table approach, which is easy, efficient, less complex & low resource consuming.
So I want to design a hardware circuit which makes use of a vector table to fetch the required book from the shelf. How should I proceed?
Those who are genuinely interested can refer the attachment pdf for further insight about the problem.
Thanks!!
I want to design a hardware which implements a logic of accessing books from a library system.
The library system contains 3 shelves, 3 racks on each shelf, & some books.
The aim of the circuit would be to fetch the desired book from the shelf based on using a catalog table. The catalog table consist of a catalog number & the book address. Each book has a unique catalog no. associated with it.
I have assumed two scenarios.
1st- Initial location of the books is made know to the CPU.
2nd- the book of interest which we want to access is stored to a new shelf.
Now this fetching can be achieved by two approaches:
1. Making the cpu remember the change of the location of a book each time when the location is changed will cost cpu resources & will be inefficient.
2. By maintaining a catalog table which is updated each time a book location is changed, the cpu just have to look at the catalog table & just have to execute a jump operation to directly fetch the desired book.
Approach 2nd is also called an interrupt vector table approach, which is easy, efficient, less complex & low resource consuming.
So I want to design a hardware circuit which makes use of a vector table to fetch the required book from the shelf. How should I proceed?
Those who are genuinely interested can refer the attachment pdf for further insight about the problem.
Thanks!!