]> rtime.felk.cvut.cz Git - fpga/virtex2/msp_motion.git/commitdiff
Error in MCU external data bus multiplexer
authorVladimir Burian <buriavl2@fel.cvut.cz>
Sun, 1 May 2011 18:36:52 +0000 (20:36 +0200)
committerVladimir Burian <buriavl2@fel.cvut.cz>
Sun, 1 May 2011 18:36:52 +0000 (20:36 +0200)
msp_motion.vhd

index 1542c0dec0bd39e8baddb43775fe08dabddfa40c..2d2f3f496a1ca2ff11644cb8252c38bb6d49a748 100644 (file)
@@ -165,10 +165,9 @@ begin
 
   -- External data bus address decoder and data multiplexer.
   ------------------------------------------------------------------------------
-  -- This statement leads to priority encoder (which should be avoided), but for
-  -- a small mux it doesn't matter and it's better readable.
-  dmem_dout <= DPA_DAT_O when DPA_SEL = '1' else
-               (others => 'X');
+  -- When connection more memories, be aware that 'dmem_dout' can vary only when
+  -- reading cycle is performed. I.e. mux variable must be registered.
+  dmem_dout <= DPA_DAT_O;
   
   DPA_SEL <= '1' when dmem_addr (11 downto 10) = "00" else '0';
   DPA_STB <= dmem_ce and DPA_SEL;