Changeset 84 for trunk/MultiChannelUSB/i2c_fifo.v
- Timestamp:
- Dec 21, 2009, 5:09:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MultiChannelUSB/i2c_fifo.v
r71 r84 15 15 reg int_rdreq, int_clken, int_sdo, int_scl, int_ack; 16 16 reg [15:0] int_data; 17 reg [ 8:0] counter;17 reg [9:0] counter; 18 18 reg [4:0] state; 19 19 20 20 assign i2c_sda = int_sdo ? 1'bz : 1'b0; 21 assign i2c_scl = int_scl | (int_clken ? counter[ 8] : 1'b0);21 assign i2c_scl = int_scl | (int_clken ? counter[9] : 1'b0); 22 22 23 23 assign start = int_data[8]; … … 34 34 .overflow_checking("ON"), 35 35 .underflow_checking("ON"), 36 .use_eab("O FF")) fifo_tx (36 .use_eab("ON")) fifo_tx ( 37 37 .rdreq((~int_rdempty) & (int_rdreq) & (&counter)), 38 38 .aclr(aclr), … … 50 50 always @ (posedge clk) 51 51 begin 52 counter <= counter + 9'd1;52 counter <= counter + 10'd1; 53 53 if (&counter) 54 54 begin
Note:
See TracChangeset
for help on using the changeset viewer.