File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3619,21 +3619,25 @@ void UhdmAst::process_stream_op()
36193619
36203620 AST::AstNode *const for_loop = //
36213621 (make_node (is_proc_ctx ? AST::AST_FOR : AST::AST_GENFOR))({
3622+ // init statement
36223623 (make_node (AST::AST_ASSIGN_EQ))({
36233624 (make_ident (loop_counter->str )),
36243625 (make_const (0 )),
36253626 }),
3627+ // condition
36263628 (make_node (AST::AST_LT))({
36273629 (make_ident (loop_counter->str )),
36283630 (make_ident (stream_concat_width_lp->str )),
36293631 }),
3632+ // iteration expression
36303633 (make_node (AST::AST_ASSIGN_EQ))({
36313634 (make_ident (loop_counter->str )),
36323635 (make_node (Yosys::AST::AST_ADD))({
36333636 (make_ident (loop_counter->str )),
36343637 (slice_size_arg->clone ()),
36353638 }),
36363639 }),
3640+ // loop body
36373641 (make_node (is_proc_ctx ? AST::AST_BLOCK : AST::AST_GENBLOCK).str (make_id_str (" loop_body" )))({
36383642 (make_node (is_proc_ctx ? AST::AST_ASSIGN_EQ : AST::AST_ASSIGN))({
36393643 (make_ident (dst_wire->str ))({
You can’t perform that action at this time.
0 commit comments