From 171698e44fc149569cfe042b28246745a58ea4fb Mon Sep 17 00:00:00 2001 From: galmes Date: Mon, 5 Apr 2004 06:38:31 +0000 Subject: isa_const et nono_const : suppression des constantes de temps (ISA_CK_PERIOD et CK_PERIOD). reg_rw : suppresion de code en commentaire. --- 2004/n/fpga/src/packages/isa_const.vhd | 2 +- 2004/n/fpga/src/packages/nono_const.vhd | 2 +- 2004/n/fpga/src/registre/reg_rw.vhd | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) (limited to '2004/n/fpga/src') diff --git a/2004/n/fpga/src/packages/isa_const.vhd b/2004/n/fpga/src/packages/isa_const.vhd index 88f558d..fc914c8 100644 --- a/2004/n/fpga/src/packages/isa_const.vhd +++ b/2004/n/fpga/src/packages/isa_const.vhd @@ -18,7 +18,7 @@ use ieee.std_logic_unsigned.all; package isa_const is -- Temps d'une période d'horloge sur le bus ISA - constant ISA_CK_PERIOD : time := 50 ns; + --constant ISA_CK_PERIOD : time := 50 ns; -- Ligne RW : lecture et écriture constant ISA_READ : std_logic := '1'; diff --git a/2004/n/fpga/src/packages/nono_const.vhd b/2004/n/fpga/src/packages/nono_const.vhd index e7b0454..3bd2f00 100644 --- a/2004/n/fpga/src/packages/nono_const.vhd +++ b/2004/n/fpga/src/packages/nono_const.vhd @@ -18,7 +18,7 @@ use ieee.std_logic_unsigned.all; package nono_const is -- Temps d'une période d'horloge sur la carte - constant CK_PERIOD : time := 10 ns; + --constant CK_PERIOD : time := 10 ns; -- Taille d'une addresse sur la carte -- RQ : 10 = nb suffisant diff --git a/2004/n/fpga/src/registre/reg_rw.vhd b/2004/n/fpga/src/registre/reg_rw.vhd index 25d645f..764eb0d 100644 --- a/2004/n/fpga/src/registre/reg_rw.vhd +++ b/2004/n/fpga/src/registre/reg_rw.vhd @@ -44,11 +44,19 @@ begin elsif (clk'event and clk = '1') then if (enable = '1' and rw = ISA_WRITE) then REG <= data; +-- end if; + --else + -- if (enable = '1' and rw = ISA_READ) then + -- data <= REG; + -- else + -- data <= (others =>'Z'); + -- end if; end if; end if; end process; -- partie combinatoire. + -- commenter ligne suivante pour version 1 data <= REG when (enable = '1' and rw = ISA_READ) else (others => 'Z'); data_out <= REG; -- cgit v1.2.3