You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Completely different code for the other issue with the same title, so a separate issue. At least this one is nice and minimal.
library ieee;
use ieee.std_logic_1164.all;
entitytestisport(
clk, set, clear, reset : instd_logic;
o : outstd_logic
);
endentity;
architecturertloftestisbegin
o <='0'when ?? reset else'1'when (?? set) andrising_edge(clk) else'0'when (?? clear) andrising_edge(clk);
endarchitecture;
This falls over with "wire not found for $posedge", while trying to connect the rising_edge as an input to an and, because the get_src function does not handle Id_PosEdge.
Writing this as
o <='0'when ?? reset else
set or (o andnot clear) whenrising_edge(clk);
works, as do normal enables like
addr_r <= addr when (?? valid) andrising_edge(clk);
so at least some variants of this are resolved by GHDL before they reach the GHDL YoSYS plugin.
The text was updated successfully, but these errors were encountered:
Hmm, even if it is invalid it would be nice to have better diagnostics here -- after all it simulates fine in GHDL, and "connecting a $posedge to something that doesn't explicitly expect it and knows not to call get_src on it" seems to be an entire class of errors.
Completely different code for the other issue with the same title, so a separate issue. At least this one is nice and minimal.
This falls over with "wire not found for $posedge", while trying to connect the
rising_edge
as an input to anand
, because theget_src
function does not handleId_PosEdge
.Writing this as
works, as do normal enables like
so at least some variants of this are resolved by GHDL before they reach the GHDL YoSYS plugin.
The text was updated successfully, but these errors were encountered: