Changeset 9094

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

interface changes for the new uniform style of occupied/space nets

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • usrp2/trunk/fpga/control_lib/cascadefifo.v

    r7175 r9094  
    2020     output full, 
    2121     output empty, 
    22      output [15:0] fifo_space); 
     22     output [15:0] space, 
     23     output [15:0] occupied); 
    2324 
    2425   wire [WIDTH-1:0] data_int; 
    2526   wire             empty_int, full_int, transfer; 
     27   wire [4:0]       short_space, short_occupied; 
     28   wire [15:0]      long_space, long_occupied; 
    2629    
    2730   shortfifo #(.WIDTH(WIDTH)) shortfifo 
    2831     (.clk(clk),.rst(rst),.clear(clear), 
    2932      .datain(datain), .write(write), .full(full), 
    30       .dataout(data_int), .read(transfer), .empty(empty_int) ); 
     33      .dataout(data_int), .read(transfer), .empty(empty_int), 
     34      .space(short_space),.occupied(short_occupied) ); 
    3135 
    3236   longfifo #(.WIDTH(WIDTH),.SIZE(SIZE)) longfifo 
     
    3438      .datain(data_int), .write(transfer), .full(full_int), 
    3539      .dataout(dataout), .read(read), .empty(empty), 
    36       .fifo_space(fifo_space) ); 
     40      .space(long_space),.occupied(long_occupied) ); 
    3741 
    3842   assign           transfer = ~empty_int & ~full_int;       
    3943 
     44   assign           space = {11'b0,short_space} + long_space; 
     45   assign           occupied = {11'b0,short_occupied} + long_occupied; 
     46    
    4047endmodule // cascadefifo 
    4148 
  • usrp2/trunk/fpga/control_lib/cascadefifo2.v

    r7175 r9094  
    1717     output full, 
    1818     output empty, 
    19      output [15:0] fifo_space); 
     19     output [15:0] space, 
     20     output [15:0] occupied); 
    2021 
    2122   wire [WIDTH-1:0] data_int, data_int2; 
    2223   wire             empty_int, full_int, transfer; 
    2324   wire             empty_int2, full_int2, transfer2; 
     25   wire [4:0]       s1_space, s1_occupied, s2_space, s2_occupied; 
     26   wire [15:0]      l_space, l_occupied; 
    2427    
    2528   shortfifo #(.WIDTH(WIDTH)) shortfifo 
    2629     (.clk(clk),.rst(rst),.clear(clear), 
    2730      .datain(datain), .write(write), .full(full), 
    28       .dataout(data_int), .read(transfer), .empty(empty_int) ); 
    29  
     31      .dataout(data_int), .read(transfer), .empty(empty_int), 
     32      .space(s1_space),.occupied(s1_occupied) ); 
     33       
    3034   longfifo #(.WIDTH(WIDTH),.SIZE(SIZE)) longfifo 
    3135     (.clk(clk),.rst(rst),.clear(clear), 
    3236      .datain(data_int), .write(transfer), .full(full_int), 
    3337      .dataout(data_int2), .read(transfer2), .empty(empty_int2), 
    34       .fifo_space(fifo_space) ); 
    35  
     38      .space(l_space),.occupied(l_occupied) ); 
     39    
    3640   shortfifo #(.WIDTH(WIDTH)) shortfifo2 
    3741     (.clk(clk),.rst(rst),.clear(clear), 
    3842      .datain(data_int2), .write(transfer2), .full(full_int2), 
    39       .dataout(dataout), .read(read), .empty(empty) ); 
    40  
     43      .dataout(dataout), .read(read), .empty(empty), 
     44      .space(s2_space),.occupied(s2_occupied) ); 
     45    
    4146   assign           transfer = ~empty_int & ~full_int;       
    4247   assign           transfer2 = ~empty_int2 & ~full_int2;            
    43  
     48    
     49   assign           space = {11'b0,s1_space} + {11'b0,s2_space} + l_space; 
     50   assign           occupied = {11'b0,s1_occupied} + {11'b0,s2_occupied} + l_occupied; 
     51       
    4452endmodule // cascadefifo2 
    4553