Coolquest, Inc. Home Products Support About Contact
cbold_logo_gif C++BOLD Example Design: TTM cbold_logo_gif

Design Home <<  File View    Class View Output (partial) Parts Library Examples Home

 

// THIS FILE IS IN THE PUBLIC DOMAIN.
// IT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
// NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
#ifndef _TTM_TerminatorsH_
#define _TTM_TerminatorsH_
 
class CM_Term56x2x8 : public TModule {    // 8-wide 56x2 ohm terminator formed from two 56-ohm resistor packs
public:
 
 
// ***** member ports ***** //
  port A;
  port B;
 
  CP_EXB2HV560JV     Term1;
  CP_EXB2HV560JV     Term2;
 
  virtual void Register() {
 
// ports
    regb( A, 7, 0 );
    regb( B, 7, 0 );
 
// parts and modules
    reg( Term1 );
    reg( Term2 );
  }
 
  virtual void Connect() {
    A << Term1.A;
    "INTER_TERM" << Term1.B << Term2.A;
    B << Term2.B;
  }
};
 
#endif

 

Design Home <<  File View    Class View Output (partial) Parts Library Examples Home

Legal Copyright © 2007 by Coolquest, Inc. Contact