#NEWLINE# def __init__( s , inout_nbits = 1 , shamt_nbits = 1 ) : #NEWLINE# #INDENT# s . in_ = InPort ( inout_nbits ) #NEWLINE# s . shamt = InPort ( shamt_nbits ) #NEWLINE# s . out = OutPort ( inout_nbits ) #NEWLINE# @ s . combinational #NEWLINE# def comb_logic( ) : #NEWLINE# #INDENT# s . out . value = ( s . in_ >> s . shamt )