Changeset 9095

Show
Ignore:
Timestamp:
07/31/08 20:19:57
Author:
matt
Message:

pass fifo level information back out to the top level

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • usrp2/trunk/fpga/sdr_lib/rx_control.v

    r7669 r9095  
    2424     input strobe, 
    2525 
     26     // FIFO Levels 
     27     output [15:0] fifo_occupied, 
     28     output fifo_full, 
     29     output fifo_empty, 
     30      
    2631     // Debug 
    2732     output [31:0] debug_rx 
     
    9499 
    95100   wire [33:0] fifo_line; 
     101    
    96102   // Internal FIFO, size 9 is 2K, size 10 is 4K 
    97103   cascadefifo2 #(.WIDTH(34),.SIZE(FIFOSIZE)) rxfifo 
    98104     (.clk(clk),.rst(rst),.clear(clear_overrun), 
    99105      .datain(fifo_line), .write(write), .full(full), 
    100       .dataout({sop_o,eop_o,wr_dat_o}), .read(read), .empty(empty) 
    101       ); 
     106      .dataout({sop_o,eop_o,wr_dat_o}), .read(read), .empty(empty), 
     107      .space(),.occupied(fifo_occupied) ); 
     108   assign      fifo_full = full; 
     109   assign      fifo_empty = empty; 
    102110 
    103111   // Internal FIFO to DSP interface