#NEWLINE# def test_ComplexBitMerge_2x4_to_8( setup_sim ) : #NEWLINE# #INDENT# ( model , sim ) = setup_bit_merge ( setup_sim , 8 , 4 ) #NEWLINE# set_ports ( setup_sim . in_ , 240 ) #NEWLINE# sim . eval_combinational ( ) #NEWLINE# assert ( model . out . v == 240 ) #NEWLINE# set_ports ( model . in_ , 85 ) #NEWLINE# sim . eval_combinational ( ) #NEWLINE# assert ( model . out . value == 85 )