rkini
Newbie level 4
- Joined
- Apr 24, 2013
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,328
I have a task defined within a class as follows:
class test;
....
....
task read_write();
reg [7:0] address;
reg [15:0] data;
....
....
...
endtask
endclass
I want to randomize the address within a certain constraint say from B0 to FF, how do I do that???
class test;
....
....
task read_write();
reg [7:0] address;
reg [15:0] data;
....
....
...
endtask
endclass
I want to randomize the address within a certain constraint say from B0 to FF, how do I do that???