martinjthompson/libv — pull request #7 by philippefaes (2012-10-21 09:19:12+00:00)
Title: "Frequency" physical type

Hi Martin,

I've implemented a data type for frequency's. I've also added helper functions for multiplication and division. For example: 1/freq = time; time*freq = real; etc.

One issue I found: I need to multiply integer with reals in one function. The GHDL simulator does not support this, but the tests work in ModelSim. Perhaps there is a way to rephrase the function so that GHDL will accept it.

Best regards
Philippe