summaryrefslogtreecommitdiff
path: root/2004
diff options
context:
space:
mode:
authorgalmes2004-02-27 18:59:45 +0000
committergalmes2004-02-27 18:59:45 +0000
commitfa12e44e41281809367270019488d54c0665a26c (patch)
tree6df404e5431f94569464ef83680d07c6a60a27c0 /2004
parentf7383ef47a285c80170a02a3ac00d4b75818de25 (diff)
Modif du test bch de gpio
Diffstat (limited to '2004')
-rw-r--r--2004/n/fpga/src/gpio/bch_gpio.vhd12
1 files changed, 9 insertions, 3 deletions
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);