# What is the difference between @(posedge clk) begin end.... and @(posedge clk);?

**URL:** <https://verificationacademy.com/forums/t/what-is-the-difference-between-posedge-clk-begin-end-and-posedge-clk/29402>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, Race-condition, posedge-clk, posedge, posedge-clk-begin\
**Created:** [April 25, 2014, 10:22am UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-posedge-clk-begin-end-and-posedge-clk/29402 "2014-04-25T10:22:21Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![mansimjoshi](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/958977/32.png) [@mansimjoshi](https://verificationacademy.com/forums/u/mansimjoshi)\
**Post date:** [August 28, 2018, 9:30am UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-posedge-clk-begin-end-and-posedge-clk/29402/13 "2018-08-28T09:30:13Z")

</div>

can we do like this :

**always @(posedge clk && (a == 1 || b ==1 ))**  
begin  
t\_out = data\_in;  
t\_k = data\_k;  
end

---

_[View the full topic](https://verificationacademy.com/forums/t/what-is-the-difference-between-posedge-clk-begin-end-and-posedge-clk/29402)._
