]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Wed, 10 Dec 2008 15:21:37 +0000 (15:21 +0000)
committerhadeshyp <hadeshyp>
Wed, 10 Dec 2008 15:21:37 +0000 (15:21 +0000)
testbench/trb_net16_dummy_apl.vhd
trb_net16_api_base.vhd
trb_net16_med_ecp_sfp.vhd
trb_net16_regIO.vhd

index f671dd8d075ec58c5f39de13764ffd3be59519e3..e205274e904e29a67bee5837956a2a25b5f52290 100644 (file)
@@ -64,10 +64,10 @@ begin
 --   address <= x"0008";
 --   reghigh <= x"DEAD";
 --   reglow  <= x"AFFE";
-  address <= x"5E1D"; --x"0001";
+  address <= x"10AB"; --x"0001";
   reghigh <= x"0022";
   reglow  <= xor_all(APL_DATA_IN) & "000000000000011";
-  APL_DTYPE_OUT <= x"F";
+  APL_DTYPE_OUT <= x"A";
   APL_TARGET_ADDRESS_OUT <= TARGET_ADDRESS;
 
   process(current_state)
index a0aa48e3b698bb2bc0b93fda0d3fce3f54a626cc..9af3988f1d369d9d8bc1aa4ad205c82975770e05 100644 (file)
@@ -816,7 +816,7 @@ INT_MASTER_DATAREADY_OUT  <= buf_INT_MASTER_DATAREADY_OUT;
           when RUNNING =>
             fifo_to_int_read <= not fifo_to_int_empty and sbuf_free and not master_counter(2);
             next_INT_MASTER_DATAREADY_OUT <= sbuf_free and (fifo_to_int_read_before or master_counter(2));
-            if APL_SEND_IN = '0' and fifo_was_not_empty = '1' then       -- terminate the transfer
+            if APL_SEND_IN = '0' then --and fifo_was_not_empty = '1' then       -- terminate the transfer
               update_registered_trailer <= '1';
               if fifo_to_int_empty = '1' and master_counter = c_F3 and sbuf_free = '1' then
                 next_state_to_int <= SEND_TRAILER;        -- immediate stop
index 700516a2845402e3976b37920f14b5e76c11b319..8d129c2744ca641f85eb01ae985ab8dcb9c5d2e2 100644 (file)
@@ -455,7 +455,7 @@ begin
             end if;
     when others  =>  NEXT_STATE <= SLEEP;
   end case;
-end process STATE_TRANSFORM;
+end process;
 
 THE_DECODE_PROC: process( CURRENT_STATE, timing_ctr )
 begin
index e29257ece6a4f6a91c25b1638ae16010cd6a0297..4c633ce7be5ec35444815a358f0a926bb4a3f084 100644 (file)
@@ -461,6 +461,9 @@ begin
           next_API_DATAREADY_OUT <= '1';
           case next_packet_counter is
             when c_F0 =>
+              if DAT_DATAREADY_IN = '0' then
+                next_API_DATAREADY_OUT <= '0';
+              end if;
               if length = 0 or DAT_NO_MORE_DATA_IN = '1' then
                 next_state <= SEND_REPLY_DATA_finish;
                 next_API_DATAREADY_OUT <= '0';
@@ -505,7 +508,7 @@ begin
             end case;
             if API_TYP_IN = TYPE_TRM then
               next_state <= DAT_START_READ;
-              DAT_READ_ENABLE_OUT <= '1';
+              next_DAT_READ_ENABLE_OUT <= '1';
             end if;
           end if;