|
|
1 program function_ex {
2 print_data(random(),random());
3 print_data(random(),random());
4 }
5
6 // Some random task
7 task print_data (bit [7:0] d1, bit [7:0] d2) {
8 printf("Value 1 %x, Value 2 %x\n",d1,d2);
9 }
You could download file task_ex.vr here
|