Skip to content

Commit

Permalink
modified: inc/vip/tb_ess.sv
Browse files Browse the repository at this point in the history
modified:   sub/common
modified:   sub/sv-genesis
  • Loading branch information
foez-ahmed committed Sep 21, 2024
1 parent 070f44d commit f8fe8cc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
24 changes: 10 additions & 14 deletions inc/vip/tb_ess.sv
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@
`ifndef TB_ESS_SV
`define TB_ESS_SV

`ifndef CONGIF
`define CONFIG "default"
`endif // CONGIF

`define CREATE_CLK(__CLK__, __HIGH__, __LOW__) \
bit ``__CLK__`` = '0; \
task static start_``__CLK__``(); \
fork \
forever begin \
``__CLK__`` <= 1; #``__HIGH__``; \
``__CLK__`` <= 0; #``__LOW__``; \
end \
join_none \
endtask \
`define CREATE_CLK(__CLK__, __HIGH__, __LOW__) \
logic ``__CLK__`` = '0; \
task static start_``__CLK__``(); \
fork \
forever begin \
``__CLK__`` <= 1; #``__HIGH__``; \
``__CLK__`` <= 0; #``__LOW__``; \
end \
join_none \
endtask \

string top_module_name = $sformatf("%m %s", `CONFIG);

Expand Down
2 changes: 1 addition & 1 deletion sub/common
2 changes: 1 addition & 1 deletion sub/sv-genesis
Submodule sv-genesis updated 1 files
+10 −14 tb_ess.sv

0 comments on commit f8fe8cc

Please sign in to comment.