Skip to content

Commit

Permalink
Add clk port to random variables tests (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
RRozak authored Nov 20, 2023
1 parent 9dce10c commit c94a527
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tests/random-variables/post_randomize.sv
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class Cls;
endclass

module top (
output logic [7:0] o
input clk,
output logic [7:0] o
);
Cls obj;
initial begin
Expand Down
3 changes: 2 additions & 1 deletion tests/random-variables/pre_randomize.sv
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class Cls;
endclass

module top (
output logic [7:0] o
input clk,
output logic [7:0] o
);
Cls obj;
initial begin
Expand Down
3 changes: 2 additions & 1 deletion tests/random-variables/rand_mode.sv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class Cls;
endclass

module top (
output logic [7:0] o
input clk,
output logic [7:0] o
);
Cls obj;
initial begin
Expand Down
3 changes: 2 additions & 1 deletion tests/random-variables/randcase.sv
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

module top (
output int o
input clk,
output int o
);
int val;
initial begin
Expand Down
2 changes: 1 addition & 1 deletion tests/random-variables/randsequence.sv
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*** End of description
*/

module top;
module top(input clk);
task display_sequence();
// Example
randsequence (main)
Expand Down

0 comments on commit c94a527

Please sign in to comment.