Fix copy-pasta typo
authorEddie Hung <eddie@fpgeh.com>
Thu, 8 Aug 2019 17:44:26 +0000 (10:44 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 8 Aug 2019 17:44:26 +0000 (10:44 -0700)
techlibs/xilinx/cells_sim.v

index 8b6eaae5d3378e2b6627cbc7edfff9dea049bf82..2731cb454eda64a263690ed9fe2818a37b48eab2 100644 (file)
@@ -522,7 +522,7 @@ module DSP48E1 (
             always @* Ar2 <= A_muxed;
         end
 
-        // Configurable A register
+        // Configurable B register
         if (BREG == 2) begin
             always @(posedge CLK)
                 if (RSTB) begin
@@ -532,7 +532,7 @@ module DSP48E1 (
                     if (CEB1) Br1 <= B_muxed;
                     if (CEB2) Br2 <= Br1;
                 end
-        end else if (AREG == 1) begin
+        end else if (BREG == 1) begin
             always @(posedge CLK)
                 if (RSTB) begin
                     Br1 <= 18'b0;