title: Exporting tasks to 'C using DPI
body: <p>I have an verilog based test-bench, interfaced to 'C source using DPI. Now using DPI I am planning to write my whole firmware. To do this I need 3 things</p>
  
  <ul>
  <li>Register Read</li>
  <li>Register Write</li>
  <li>Interrupt handler
  As I understand, register reads and writes are tasks that I need to export from the RTL test-bench. And Interrupt handler (I implemented by importing a function from 'C).</li>
  </ul>
  
  <p>I checked most the cadence documentation and found no useful hints.
  I have also registered with cadence users community but it seems that I cannot ask question till they approve my registration.</p>
  
  <p>Just in case someone is aware of this, would appreciate their help.</p>