
286 CHAPTER 11 Processor Design with ArchC
Now that we know how interrupts work inside the processor, what we have
to understand is how an external module interrupts the processor. First, when-
ever you declare an
ac_tlm_intr_port in your project_name.ac file you will have an
ac_tlm_intr_port as a member of your processor module.
This
ac_tlm_intr_port has the exact same name you declared in
project_name.ac, which in this case is inta. The ac_tlm_intr_port is-a (inherits
from)
sc_export<ac_tlm_transport_if>, and this export is bound to itself, because
ac_tlm_intr_port also implements the transport() method mentioned earlier, and this
method has a fixed implementation, ...