aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-11-15 21:03:57 +0100
committerTristan Gingold <tgingold@free.fr>2022-11-15 21:03:57 +0100
commit9b4d24c2cb23a519efd2b68efec286975ce5d00b (patch)
tree62f349dda438e80c9a72d32dbe3358fb840a00db /src/synth
parent463a0b1a8baa6bb1092c2b3e1d6a8c3ab0a740bf (diff)
downloadghdl-9b4d24c2cb23a519efd2b68efec286975ce5d00b.tar.gz
ghdl-9b4d24c2cb23a519efd2b68efec286975ce5d00b.tar.bz2
ghdl-9b4d24c2cb23a519efd2b68efec286975ce5d00b.zip
synth: improve error message for ghdl/ghdl-yosys-plugin#179
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/netlists-inference.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/synth/netlists-inference.adb b/src/synth/netlists-inference.adb
index 07bfddc9b..5850ad204 100644
--- a/src/synth/netlists-inference.adb
+++ b/src/synth/netlists-inference.adb
@@ -469,7 +469,9 @@ package body Netlists.Inference is
end if;
if Els_Clk = No_Net then
Error_Msg_Netlist
- (Mux_Loc, "clocked logic requires clocked logic on else part");
+ (Mux_Loc,
+ "clocked logic requires clocked logic on else part for net %n",
+ (1 => +Get_Net_Parent (Prev_Val)));
Els := No_Net;
else
-- Create and return the DFF.