Fix a Diamond build issue in writeback
authorAnton Blanchard <anton@linux.ibm.com>
Thu, 23 Jan 2020 00:37:24 +0000 (11:37 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Thu, 23 Jan 2020 00:37:24 +0000 (11:37 +1100)
Diamond doesn't like the "" & method of converting std_logic to a single bit
std_logic_vector. Thanks to Olof Kindgren for this patch.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
writeback.vhdl

index e53f46bca6f061d1da9415a4ae6e955b8b5f9293..a730266984dc740149ba03e4fafde81d9560d7c9 100644 (file)
@@ -64,16 +64,16 @@ begin
         variable zero : std_ulogic;
         variable sign : std_ulogic;
     begin
-        x := "" & e_in.valid;
-        y := "" & l_in.valid;
+        x(0) := e_in.valid;
+        y(0) := l_in.valid;
         assert (to_integer(unsigned(x)) + to_integer(unsigned(y))) <= 1 severity failure;
 
-        x := "" & e_in.write_enable;
-        y := "" & l_in.write_enable;
+        x(0) := e_in.write_enable;
+        y(0) := l_in.write_enable;
         assert (to_integer(unsigned(x)) + to_integer(unsigned(y))) <= 1 severity failure;
 
-        w := "" & e_in.write_cr_enable;
-        x := "" & (e_in.write_enable and e_in.rc);
+        w(0) := e_in.write_cr_enable;
+        x(0) := (e_in.write_enable and e_in.rc);
         assert (to_integer(unsigned(w)) + to_integer(unsigned(x))) <= 1 severity failure;
 
         w_out <= WritebackToRegisterFileInit;