<s> from pymtl import * <EOL> from valrdy import valrdy_to_str <EOL> class ParentChildBundle ( PortBundle ) : <EOL> def __init__ ( self , msgtype ) : <EOL> self . req = msgtype . req <EOL> self . resp = msgtype . resp <EOL> self . req_msg = InPort ( msgtype . req ) <EOL> self . req_val = InPort ( <NUM_LIT:1> ) <EOL> self . req_rdy = OutPort ( <NUM_LIT:1> ) <EOL> self . resp_msg = InPort ( msgtype . resp ) <EOL> self . resp_val = InPort ( <NUM_LIT:1> ) <EOL> self . resp_rdy = OutPort ( <NUM_LIT:1> ) <EOL> def to_str ( self , msg = None ) : <EOL> return "<STR_LIT>" <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" <EOL> ParentReqRespBundle , ChildReqRespBundle = create_PortBundles ( ParentChildBundle ) </s>
