File tree Expand file tree Collapse file tree 6 files changed +24
-292
lines changed
sample/tests/lib_pipeline Expand file tree Collapse file tree 6 files changed +24
-292
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ def mkTest(numports=8):
6767 xfsm .add (x .inc ())
6868 xfsm .add (x_count .inc ())
6969 xfsm .goto_next (cond = x_count == 10 )
70+ xfsm .add (x (0 ))
71+ for i in range (5 ):
72+ xfsm .goto_next ()
7073 xfsm .add ( Systask ('finish' ) )
7174
7275 xfsm .make_always (clk , rst )
Original file line number Diff line number Diff line change 5151 localparam xfsm_init = 0;
5252 localparam xfsm_1 = 1;
5353 localparam xfsm_2 = 2;
54+ localparam xfsm_3 = 3;
55+ localparam xfsm_4 = 4;
56+ localparam xfsm_5 = 5;
57+ localparam xfsm_6 = 6;
58+ localparam xfsm_7 = 7;
5459
5560 always @(posedge CLK) begin
5661 if(RST) begin
7176 end
7277 end
7378 xfsm_2: begin
79+ x <= 0;
80+ xfsm <= xfsm_3;
81+ end
82+ xfsm_3: begin
83+ xfsm <= xfsm_4;
84+ end
85+ xfsm_4: begin
86+ xfsm <= xfsm_5;
87+ end
88+ xfsm_5: begin
89+ xfsm <= xfsm_6;
90+ end
91+ xfsm_6: begin
92+ xfsm <= xfsm_7;
93+ end
94+ xfsm_7: begin
7495 $finish;
7596 end
7697 endcase
You can’t perform that action at this time.
0 commit comments