Altera_Forum
Honored Contributor
15 years agoBug in Quartus II
I stumbled upon a bug in Quartus II (9.0 and 9.1 SP2). It confuses a preset for a clear in some situations.
It does not show in the RTL Viewer, nor the program file, but does show in the Technology Map Viewer, and affects (and this is how I found out !) the standard Simulator (which acts as if the preset is in fact a clear). Sort of minimal AHDL input looks like this (built for an EPM7128STC100-10) : --- SUBDESIGN lala ( reset : INPUT; clock : INPUT; data[1..0] : INPUT; product : OUTPUT; ) VARIABLE wrong_ff[1..0] : DFFE; BEGIN wrong_ff[].d = data[]; wrong_ff[].clk = !clock; wrong_ff[0].prn = reset; wrong_ff[1].clrn = reset; product = wrong_ff[0]# wrong_ff[1]; END; --- There does not seem to be an obvious way around this bug (e.g. ungrouping and/or renaming the DFFEs). Although removing the 'other' DFFE seems to prevent the problem. And yes, I know I should be using other simulators. Fix this, Altera !