Exemplo n.º 1
0
/// Constructor
ac_tlm_bus::ac_tlm_bus(sc_module_name module_name):
  sc_module(module_name),
  target_export("iport"),
  MEM_port("MEM_port", 5242880U), // This is the memory port, assigned for 5MB
  OFF_port("OFF_port", 80U) 
{
    /// Binds target_export to the memory
    target_export(*this);

}
Exemplo n.º 2
0
/// Constructor
ac_tlm_controller::ac_tlm_controller( sc_module_name module_name , mips *v_procs[], int k) :
  sc_module( module_name ),
  target_export("iport")
{
    /// Binds target_export to the controller
    target_export( *this );

    /// Set processors
    for(int i = 0; i < k; i++) procs[i] = v_procs[i];
    num_procs = k;
}
Exemplo n.º 3
0
/// Constructor
ac_tlm_mem::ac_tlm_mem( sc_module_name module_name , int k ) :
  sc_module( module_name ),
  target_export("iport")
{
    /// Binds target_export to the memory
    target_export( *this );

    /// Initialize memory vector
    memory = new uint8_t[ k ];
    for(k=k-1;k>0;k--) memory[k]=0;

}