Changeset 97 for trunk/MultiChannelUSB
- Timestamp:
- Mar 12, 2010, 11:53:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MultiChannelUSB/adc_fifo.v
r90 r97 4 4 ) 5 5 ( 6 input wire adc_cl k,6 input wire adc_clock, 7 7 input wire [W-1:0] adc_data, 8 8 9 input wire sys_cl k,10 output wire sys_ good,9 input wire sys_clock, 10 output wire sys_frame, 11 11 output wire [W-1:0] sys_data 12 12 ); … … 15 15 reg [W-1:0] int_data; 16 16 17 reg state, int_rdreq, int_ good;17 reg state, int_rdreq, int_frame; 18 18 wire int_wrfull, int_rdempty; 19 19 … … 33 33 .aclr(1'b0), 34 34 .data(adc_data), 35 .rdclk(sys_cl k),35 .rdclk(sys_clock), 36 36 .rdreq((~int_rdempty) & int_rdreq), 37 .wrclk(adc_cl k),37 .wrclk(adc_clock), 38 38 .wrreq(~int_wrfull), 39 39 .q(int_q), … … 45 45 .wrusedw()); 46 46 47 always @(posedge sys_cl k)47 always @(posedge sys_clock) 48 48 begin 49 49 case (state) … … 51 51 begin 52 52 int_rdreq <= 1'b1; 53 int_ good<= 1'b0;53 int_frame <= 1'b0; 54 54 state <= 1'b1; 55 55 end … … 61 61 int_data <= int_q; 62 62 int_rdreq <= 1'b0; 63 int_ good<= 1'b1;63 int_frame <= 1'b1; 64 64 state <= 1'b0; 65 65 end … … 68 68 end 69 69 70 assign sys_ good = int_good;70 assign sys_frame = int_frame; 71 71 assign sys_data = int_data; 72 72
Note:
See TracChangeset
for help on using the changeset viewer.