Skip to content

Conversation

@fukatani
Copy link
Contributor

Change behavior of walkey.makeTree for assign statement using partselect, and add test(test_partselect_assign.py).

ex.

  assign in1[2:1] = reg3[6:5];
  always @(posedge CLK) begin
    reg1 <= in1[2:1];
  end

Previous walker.makeTree.tocode() outputs :
TOP_reg3['d6:'d5]['d2]

However, this output recall the two -dimensional array, I think output as follows is more suitable.
Changed to:
TOP_reg3['d6]

…ect, and add test(test_partselect_assign.py).

ex.
  assign in1[2:1] = reg3[6:5];
  always @(posedge CLK) begin
    reg1 <= in1[2:1];
  end

Previous makeTree:
TOP_reg3['d6:'d5]['d2]

However, this output recall the two -dimensional array , it is considered not to be appropriate.
Changed to:
TOP_reg3['d6]
shtaxxx added a commit that referenced this pull request Aug 23, 2015
"Change behavior of walkey.makeTree for assign statement using partselect" Thanks! It has been merged.
@shtaxxx shtaxxx merged commit 5e42609 into PyHDI:master Aug 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants