lm32_multiplier.v

changeset 27
d6c693415d59
parent 26
73de224304c1
     1.1 --- a/lm32_multiplier.v	Sat Aug 06 00:02:46 2011 +0100
     1.2 +++ b/lm32_multiplier.v	Sat Aug 06 01:26:56 2011 +0100
     1.3 @@ -99,21 +99,21 @@
     1.4  begin
     1.5      if (rst_i == `TRUE)
     1.6      begin
     1.7 -        muliplicand <= #1 {`LM32_WORD_WIDTH{1'b0}};
     1.8 -        multiplier <= #1 {`LM32_WORD_WIDTH{1'b0}};
     1.9 -        product <= #1 {`LM32_WORD_WIDTH{1'b0}};
    1.10 -        result <= #1 {`LM32_WORD_WIDTH{1'b0}};
    1.11 +        muliplicand <= {`LM32_WORD_WIDTH{1'b0}};
    1.12 +        multiplier <= {`LM32_WORD_WIDTH{1'b0}};
    1.13 +        product <= {`LM32_WORD_WIDTH{1'b0}};
    1.14 +        result <= {`LM32_WORD_WIDTH{1'b0}};
    1.15      end
    1.16      else
    1.17      begin
    1.18          if (stall_x == `FALSE)
    1.19          begin    
    1.20 -            muliplicand <= #1 operand_0;
    1.21 -            multiplier <= #1 operand_1;
    1.22 +            muliplicand <= operand_0;
    1.23 +            multiplier <= operand_1;
    1.24          end
    1.25          if (stall_m == `FALSE)
    1.26 -            product <= #1 muliplicand * multiplier;
    1.27 -        result <= #1 product;
    1.28 +            product <= muliplicand * multiplier;
    1.29 +        result <= product;
    1.30      end
    1.31  end
    1.32