From dbff927a633e6a7fac8ddc20617f20d992ed127e Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Fri, 20 Mar 2009 19:15:11 +0000 Subject: [PATCH] - cop ouput register is now latch (better timing) Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@407 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/CPUs/MIPS/src/core/mips_cop.vhd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/CPUs/MIPS/src/core/mips_cop.vhd b/lib/CPUs/MIPS/src/core/mips_cop.vhd index 48c3878..34da7f1 100644 --- a/lib/CPUs/MIPS/src/core/mips_cop.vhd +++ b/lib/CPUs/MIPS/src/core/mips_cop.vhd @@ -347,7 +347,12 @@ cop_register_read: reg := (others => '-'); end case; - dout <= reg after 2 ns; + + -- Output latch + if cop_pipe_EX.re = '1' then + dout <= reg after 2 ns; + end if; + end process; cop_we_gen: