The code is by Terasic and isn't encrypted, just reverse engineer what the WR1_LENGTH does. By quick inspection it looks like it sets the burst length as it's compared with the addresses.
You should try putting in more effort before posting. It's pretty easy to open a Verilog file and read the contents.