From 4057a7ba43b9b8403e0d7c78218b7babfd90308f Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Tue, 23 Mar 2010 11:39:43 +0000 Subject: [PATCH] Minor changes 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@813 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/emac/src/tb_emac_top_jb.vhd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/emac/src/tb_emac_top_jb.vhd b/lib/emac/src/tb_emac_top_jb.vhd index 861556f..40b7688 100644 --- a/lib/emac/src/tb_emac_top_jb.vhd +++ b/lib/emac/src/tb_emac_top_jb.vhd @@ -68,7 +68,7 @@ ARCHITECTURE behavior OF tb_emac_top_jb IS signal loop_back_en : std_logic := '0'; - type emac_action_t is (emac_idle, emac_alloc, emac_write, emac_read, emac_free); + type emac_action_t is (emac_idle, emac_alloc, emac_wait_alloc, emac_write, emac_wait_data, emac_read, emac_free); signal emac_action : emac_action_t; BEGIN @@ -173,6 +173,7 @@ STIMULUS: process WE_I <= '0'; -- check alloc busy + emac_action <= emac_wait_alloc; check_bsy: while (true) loop CYC_I <= '1'; @@ -233,7 +234,7 @@ STIMULUS: process variable size, num_words : natural; begin - emac_action <= emac_read; + emac_action <= emac_wait_data; -- check if data available check_data_avail: @@ -264,6 +265,7 @@ STIMULUS: process wait until rising_edge(CLK); + emac_action <= emac_read; -- Read RX data size := size_in; if (size_in = 0) then