From fa12e44e41281809367270019488d54c0665a26c Mon Sep 17 00:00:00 2001 From: galmes Date: Fri, 27 Feb 2004 18:59:45 +0000 Subject: Modif du test bch de gpio --- 2004/n/fpga/src/gpio/bch_gpio.vhd | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '2004/n/fpga/src/gpio/bch_gpio.vhd') diff --git a/2004/n/fpga/src/gpio/bch_gpio.vhd b/2004/n/fpga/src/gpio/bch_gpio.vhd index cd89ac4..4cf5682 100644 --- a/2004/n/fpga/src/gpio/bch_gpio.vhd +++ b/2004/n/fpga/src/gpio/bch_gpio.vhd @@ -104,14 +104,15 @@ begin -- Début du process de test. -- ------------------------- begin + -- Ecriture dans les trois registres. wait for (3*CK_PERIOD); - do_write (A_IO1_REG_DIRECTION, x"07"); + do_write (A_IO1_REG_DIRECTION, x"07"); -- 3 bits poid faible : in. wait for (3*CK_PERIOD); do_write (A_IO1_REG_DATA, x"01"); wait for (3*CK_PERIOD); - -- interruption sur les 3 bits de poid faible. - do_write (A_IO1_REG_INTERRUPT_MASK, x"07"); + -- interruption sur les 5 bits de poid faible. + do_write (A_IO1_REG_INTERRUPT_MASK, x"07"); -- Lecture dans les trois registres. wait for (3*CK_PERIOD); @@ -121,6 +122,11 @@ begin wait for (3*CK_PERIOD); do_read (A_IO1_REG_DATA); + -- Avant de lire sur io_output, mettre output en Z. + wait for (3*CK_PERIOD); + io_output <= "00001ZZZ"; + wait for (3*CK_PERIOD); + io_output <= "ZZZZZZZZ"; -- Lecture de la donnée sur io_output. wait for (3*CK_PERIOD); do_read (A_IO1_READ_OUTPUT); -- cgit v1.2.3