Menu

#51 VHDL: rotate support for simulation

open
nobody
None
5
2017-12-08
2017-12-04
No

I'd love to have the rotate_left, rotate_right functions available. They don't synthesize well unless using a constant, but they could easily be converted as:

assign A_out = (A_in << bits_to_rotate) | (A_in >> (~bits_to_rotate+1));

for a rotate left (sample from stackoverflow). This could at least create a simulatable rotate.

Discussion

  • Cary R.

    Cary R. - 2017-12-06

    Is this for VHDL? If so please add VHDL to the beginning of the title.

     
  • Joshua Einstein-Curtis

    It currently won't let me edit the title. Should I cancel this one and do another ticket?

     
  • Cary R.

    Cary R. - 2017-12-08
    • summary: rotate support for simulation --> VHDL: rotate support for simulation
     
  • Cary R.

    Cary R. - 2017-12-08

    You need to clock on the edit link. I updated it to VHDL since I assume that is what you were trying to do.

     

Log in to post a comment.