Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Interrupt routine in VHDL

Status
Not open for further replies.

Mkanimozhi

Full Member level 4
Joined
Aug 8, 2007
Messages
193
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
3,445
Hi Experts,

How to handle the interrupt rotuine in VHDL, if any one have sample code, plz give to me.

Thanks and Regards,
Kanimozhi.M
 

Hello,

There is no interrupt routine in VHDL. VHDL is not describing sequential operations, it describes an hardware design. Thus, it can't be interrupted....
What do you want to do exactly ??

Franck.
 

HDL is "Hardware Description Language". So any routine would have to make sense in this context. What specifically are you asking? For example, if you are describing a CPU with the VHDL code, than an interrupt would probably refer to the interrupt controller. If you are interfacing to a softcore CPU, interrupts would likely be defined somewhere in the hardware spec. If you have a state machine, then interrupts might not make sense or could be implemented in many different ways. Again, HDL defines the hardware and has no built-in concept of interrupts.

Describing HW is much different than writing a program -- the CPU only works on one task at a time because that is all the CPU allows. An interrupt thus must force the CPU to stop what it is currently doing and handle the interrupt. But that is only because of the way the CPU was designed. If you are describing the hardware yourself, you can take the interrupt condition, and simple design a small piece of HW to handle that condition. This can allow the rest of the design to continue working uninterrupted.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top