Open cube1us opened 4 years ago
Implemented Oscillator, which uses a similar technique. It is Special with an HDLName of Oscillator, so SS would be Special with an HDLName of SingleShot, and it parses the title (the part above the logic block), and then uses that as a generic, which is similar to what would be needed here.
Single Shot generate should examine the logic block title to figure out the hold time, convert to a common unit (microseconds or milliseconds) and generate as a "SPECIAL" would with a name of SMSMSS[MS|US]_(time in ms or us) which would then be hand coded. OR we could try a VHDL generic and pass the value that way, which presumably would force the synthesis tool to synthesize each single shot separately - which it would have to do anyway.