Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- If you were writing VHDL, I would recommend writing a function that takes the loop parameter (integer) and returns a string. I'm sure the same is possible with Verilog/SystemVerilog. Cheers, Dave --- Quote End --- Perhaps the constant function is a solution, but how can i convert the loop parameter into string? I found the $sformatf can do that, but the system function is not available in constant function. Can you give me a short example on that?