Forum Discussion
Altera_Forum
Honored Contributor
14 years agoALTFP_CONVERT in Modelsim
I'm currently using the ALTFP_CONVERT megafunction in my design to convert a 10 bit integer to a 32bit FP. It has a clk_en (convert_en) and an aclr port (convert_rst). Unfortunatly the output s...
Altera_Forum
Honored Contributor
14 years agoThank you for your reply.
The section of my testbench for stimulating the convertor: --- Quote Start --- //Convert signals logic convert_rst; logic convert_en; logic[9:0] in; logic [31:0] out; //Module fpconvert converter(convert_rst,CLOCK_50,convert_en,in,out); //Convert Signals initial begin convert_rst = 1'b0; convert_en = 1'b0; in = 10'b0000000001; # 50ns; convert_rst = 1'b0; convert_en = 1'b1; in = 10'b0000100001; # 50ns; convert_rst = 1'b0; convert_en = 1'b1; in = 10'b0000100001; # 50ns; convert_rst = 1'b0; convert_en = 1'b1; in = 10'b0000100001; # 50ns; convert_rst = 1'b0; convert_en = 1'b1; in = 10'b0000100001; # 50ns; convert_rst = 1'b0; convert_en = 1'b1; in = 10'b0000100001; # 50ns; convert_rst = 1'b0; convert_en = 1'b1; in = 10'b0000100001; # 50ns; convert_rst = 1'b0; convert_en = 1'b1; in = 10'b0000100001; end --- Quote End --- As you can see, it is the megafunction output port which is high Z. I tried simulating without the 'mains' module (which is my entire design) which removed the 'Non-positive replication multiplier inside concat' error. So from what I can tell, it's a either an issue with the Megafunction or Modelsim.