Ejemplo n.º 1
0
int
sc_main( int, char*[] )
{
    sc_bv<4> bv_one( "0101" );
    sc_bv<4> bv_two( "1010" );

    test_smaller( bv_one, bv_two );
    test_equal( bv_one, bv_two );
    test_larger( bv_one, bv_two );

    return 0;
}
Ejemplo n.º 2
0
int
sc_main( int, char*[] )
{
    sc_lv<4> lv_one( "01ZX" );
    sc_lv<4> lv_two( "1010" );

    test_smaller( lv_one, lv_two );
    test_equal( lv_one, lv_two );
    test_larger( lv_one, lv_two );

    return 0;
}
Ejemplo n.º 3
0
//uruchamiaj wszystkie testy po kolei
void Tester::run(){
	cout<< "Test-start" <<endl;

	test_rest();
	test_hex();
	test_divide();
	test_multpily();
	test_bigger();
	test_smaller();
	test_add();
	test_substract();

	cout<< "Test-koniec" <<endl;
}