this is my first post to this forum so hello everybody: I work as a consultant RTL designer and verification, mostly in Verilog but vhdl is also ok.
I am porting a Verilog AMS model into system Verilog. Most of the job is to replace wire/reg with logic and define real port in the module declaration then removing wreal from the module body
so far so good
now my question is how to istantiate the top module of my analogue IP into the the digital top. This module has both logic and real port now so I wonder how to connect real port to the top mofile wires / logic without offending the simulator. currently I got type mismatch errors when doing this
Some comments
1- I cannot / do not want to modify the digital top (I like to keep the same netlist all over the flow
then a couple of solutions
2- should I let a vams model of the analogue top and use wreal herein to connect ‘real’ ports of the sub modules?
3- shouldn’t specify real types on the port declaration of the modules letting the compiler /elaborate derive the type by itself
I like solution nr.3, still I’d like to make sure it is correct
I also cannot connect modules with input and output ports of type ‘real’ using ‘real’ wires so I am more and more confused
Please show me the right / most convenient methodology for this
thanks much in advance