I have some Verilog code that generates an array of blockRAMs to any dimensions that I want. For example, if I set LENGTH=3 and HEIGHT=4 then 12 blockRAMs get synthesized. I have a separate script written in Ruby that creates the initial blockRAM contents according to the position of each blockRAM in the array. What I'd like to do is be able to pass in the blockRAM init parameters dynamically as each blockRAM is generated.
I'm looking for suggestions on how to do this. Can XST execute and interact with scripts from the command line?