Changeset 84 for trunk/MultiChannelUSB/adc_fifo.v
- Timestamp:
- Dec 21, 2009, 5:09:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MultiChannelUSB/adc_fifo.v
r72 r84 12 12 reg [11:0] int_data; 13 13 14 reg state, int_rdreq, int_data_ready; 14 reg [1:0] state; 15 reg int_rdreq, int_data_ready; 15 16 wire int_wrfull, int_rdempty; 16 17 … … 26 27 .overflow_checking("ON"), 27 28 .underflow_checking("ON"), 28 .use_eab("O FF"),29 .use_eab("ON"), 29 30 .write_aclr_synch("OFF")) fifo_unit ( 30 31 .aclr(1'b0), … … 45 46 begin 46 47 case (state) 47 1'b0:48 2'd0: 48 49 begin 49 50 int_rdreq <= 1'b1; 50 51 int_data_ready <= 1'b0; 51 state <= 1'b1;52 state <= 2'd1; 52 53 end 53 54 54 1'b1:55 2'd1: 55 56 begin 56 57 if (~int_rdempty) … … 59 60 int_rdreq <= 1'b0; 60 61 int_data_ready <= 1'b1; 61 state <= 1'b0;62 state <= 2'd0; 62 63 end 63 64 end 64 65 65 default:66 2'd2: 66 67 begin 67 int_rdreq <= 1'b1;68 68 int_data_ready <= 1'b0; 69 state <= 1'b1;69 state <= 2'd3; 70 70 end 71 72 2'd3: 73 begin 74 state <= 2'd0; 75 end 76 71 77 endcase 72 78 end
Note:
See TracChangeset
for help on using the changeset viewer.