aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN. Engelhardt <nak@yosyshq.com>2023-02-17 18:40:22 +0100
committerGitHub <noreply@github.com>2023-02-17 18:40:22 +0100
commitf30b539cc2e5acfb82f6bbf4db4db994f7d9fb4a (patch)
tree5f6cca5a223055741e7041baf1181e68ebf4af96
parent1cfedc90ce7b2bd63d75883a4e8c36fd44f0e4e7 (diff)
parentfc56978703b5e942ba728970e13e065100a34cd7 (diff)
downloadyosys-f30b539cc2e5acfb82f6bbf4db4db994f7d9fb4a.tar.gz
yosys-f30b539cc2e5acfb82f6bbf4db4db994f7d9fb4a.tar.bz2
yosys-f30b539cc2e5acfb82f6bbf4db4db994f7d9fb4a.zip
Merge pull request #3681 from keszocze/keszocze-patch-dsp48e1-init-dreg
-rw-r--r--techlibs/xilinx/cells_sim.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/techlibs/xilinx/cells_sim.v b/techlibs/xilinx/cells_sim.v
index ee5a89e22..e6e15b16e 100644
--- a/techlibs/xilinx/cells_sim.v
+++ b/techlibs/xilinx/cells_sim.v
@@ -3614,7 +3614,7 @@ module DSP48E1 (
if (CREG == 1) begin always @(posedge CLK) if (RSTC) Cr <= 48'b0; else if (CEC) Cr <= C; end
else always @* Cr <= C;
- if (CREG == 1) initial Dr = 25'b0;
+ if (DREG == 1) initial Dr = 25'b0;
if (DREG == 1) begin always @(posedge CLK) if (RSTD) Dr <= 25'b0; else if (CED) Dr <= D; end
else always @* Dr <= D;