|
|
1 program relational {
2 integer a = 5;
3 bit [7:0] b = 10;
4 bit [3:0] c = 4'b10zx;
5 printf (" %4d <= %8d = %b\n", a,b,(a <= b));
6 printf (" %4d >= %8d = %b\n", a,b,(a >= b));
7 printf (" %b <= %b = %b\n", c,b,(c <= b));
8 printf (" %b <= %b = %b\n", c,b,(c <= b));
9 }
You could download file relational.vr here
|