Don't use VHDL 2008 condition operator in multiply
authorAnton Blanchard <anton@linux.ibm.com>
Thu, 19 Sep 2019 10:18:01 +0000 (20:18 +1000)
committerAnton Blanchard <anton@ozlabs.org>
Thu, 19 Sep 2019 10:18:01 +0000 (20:18 +1000)
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
multiply.vhdl

index 9aa43169d9902d30e45a51d4a716ba97ea904c5a..3e76b4360408554421feecdf838b4861369e3e79 100644 (file)
@@ -85,7 +85,7 @@ begin
                m_out.write_reg_data <= d2;
                m_out.write_reg_nr <= v.multiply_pipeline(PIPELINE_DEPTH-1).write_reg;
 
-               if v.multiply_pipeline(PIPELINE_DEPTH-1).valid then
+               if v.multiply_pipeline(PIPELINE_DEPTH-1).valid = '1' then
                        m_out.valid <= '1';
                        m_out.write_reg_enable <= '1';