Hi,
I am simulating some code involving reals.
When I use ghdl and dump the data to ghw and inspect with gtkwave, the
adc_real(i) values get updated twice and then never more.
When simulating with modelsim, I see that the same code result in
adc_real values being updated with one clock cycle latency as
expected.
The integer values are updated as expected.
What could cause reals not to be updated?
g_dc_offset : for i in 1 to 4 generate
p_calc : process (clk) is
begin
if rising_edge(clk) then
adc_integer(i).I <= to_integer(signed(datain(i).I));
adc_integer(i).Q <= to_integer(signed(datain(i).Q));
--adc_real(i).I <= real(to_integer(signed(datain(i).I)));
--adc_real(i).Q <= real(to_integer(signed(datain(i).Q)));
adc_real(i).I <= real(adc_integer(i).I);
adc_real(i).Q <= real(adc_integer(i).Q);
end if;
end process;
end generate;
--
Svenn
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss