aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-08-28 12:11:56 +0200
committerTristan Gingold <tgingold@free.fr>2021-08-29 11:50:17 +0200
commit132fde15a4d4bffd31bff341dfeaf11317c82130 (patch)
treecd28935ed874159128ce3f1ff4b920e182ec1f9c /src
parent647afac5fd455238416cb07a9c6f638affe4ff8f (diff)
downloadghdl-132fde15a4d4bffd31bff341dfeaf11317c82130.tar.gz
ghdl-132fde15a4d4bffd31bff341dfeaf11317c82130.tar.bz2
ghdl-132fde15a4d4bffd31bff341dfeaf11317c82130.zip
netlists-inference: improve location for dff.
Diffstat (limited to 'src')
-rw-r--r--src/synth/netlists-inference.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/netlists-inference.adb b/src/synth/netlists-inference.adb
index 00a029ea2..6da07e19a 100644
--- a/src/synth/netlists-inference.adb
+++ b/src/synth/netlists-inference.adb
@@ -355,7 +355,7 @@ package body Netlists.Inference is
Prev := Build2_Extract (Ctxt, Prev_Val, Off, Get_Width (Data));
Ndata := Build_Mux2 (Ctxt, Clk_Enable, Prev, Data);
- Copy_Location (Ndata, Clk_Enable);
+ Set_Location (Ndata, Loc);
end;
else
Ndata := Data;