From 9b4d24c2cb23a519efd2b68efec286975ce5d00b Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 15 Nov 2022 21:03:57 +0100 Subject: synth: improve error message for ghdl/ghdl-yosys-plugin#179 --- src/synth/netlists-inference.adb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3