Edit code - EDA Playground
Warning! This exercise has been opened in another tab; autosave has been disabled. Close this tab or refresh to reactivate.

 Languages & Libraries

 Tools & Simulators

 Examples

205


19
 
1
//----------------------------------------------------------------------------------
2
//                      www.verificationguide.com
3
//----------------------------------------------------------------------------------
4
module break_in_loop;
5
6
  initial begin
7
    $display("-----------------------------------------------------------------");
8
    
9
    for(int i=0;i<8;i++) begin
10
      $display("\tValue of i=%0d",i);
11
      if(i == 4) begin
12
        $display("\tCalling break,");
13
        break;
14
      end  
15
    end
16
    
17
    $display("-----------------------------------------------------------------");
18
  end      
19
endmodule
xxxxxxxxxx
1
 
1
// Code your design here
2
728 views and 0 likes     
A short description will be helpful for you to remember your playground's details
 
100:0