Hey Community,
--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el-lado-libre+unsubscribe@googlegroups.com.
Para publicar en este grupo, envía un correo electrónico a fpga-wars-explorando-el-lado-li...@googlegroups.com.
Visita este grupo en https://groups.google.com/group/fpga-wars-explorando-el-lado-libre.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/fpga-wars-explorando-el-lado-libre/7105e25c-e9f4-48c9-b090-902dd012ac05%40googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.
--
I2C Master Controller Documentation
|
RD1139 | 1.1 | 2/12/2015 | 1.5 MB | |||
I2C Master Controller Source Code
|
RD1139 | 1.1 | 2/12/2015 | ZIP | 658 KB | ||
I2C Slave Controller - Documentation
|
RD1140 | 1.1 | 2/12/2015 | 746.4 KB | |||
I2C Slave Controller - Source Code
|
RD1140 | 1.1 | 2/12/2015 | ZIP | 338.6 KB | ||
I2C to SPI Bridge - Documentation
|
RD1172 | 1.1 | 2/9/2015 | 1.4 MB | |||
I2C to SPI Bridge - Source Code
|
RD1172 | 1.1 | 2/8/2015 | ZIP | 459.7 KB | ||
SPI to I2C Bridge - Documentation
|
RD1173 | 1.1 | 2/9/2015 | 1.5 MB | |||
SPI to I2C Bridge - Source Code
|
RD1173 | 1.1 | 2/8/2015 | ZIP | 611.7 KB |
Para publicar en este grupo, envía un correo electrónico a fpga-wars-explorando-el-lado-lib...@googlegroups.com.
Visita este grupo en https://groups.google.com/group/fpga-wars-explorando-el-lado-libre.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/fpga-wars-explorando-el-lado-libre/7105e25c-e9f4-48c9-b090-902dd012ac05%40googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.
--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el-lado-libre+unsubscribe@googlegroups.com.
Para publicar en este grupo, envía un correo electrónico a fpga-wars-explorando-el-lado-li...@googlegroups.com.
Visita este grupo en https://groups.google.com/group/fpga-wars-explorando-el-lado-libre.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/fpga-wars-explorando-el-lado-libre/1b3af197-a270-4e15-9a2f-31a21981db30%40googlegroups.com.
Thanks for the information. Yes i have some background on I2C communication and Hardware Description Languages but I think both of it not as much as i needs for this.. I worked only with I2C in combination with Mikrocontrollers and the Hardware Description Language I learned is VDHL and this for only one semester in my University..
i_clk | 1 | Input | System clock operating at 32 MHz |
i_rst_n | 1 | Input | Asynchronous active-low system reset |
o_int_n | 1 | Output | Active-low processor interrupt |
i_slave_addr_reg 8 | Input | 7-bit I2C slave address | |
i_byte_cnt_reg 8 | Input | Sets the number of data bytes to be read or written for the I tion 2C transac | |
i_clk_div_lsb 8 | Input | Sets the lower byte of the clock divider that is used to generate SCL from CLK. The upper three bits are located in the mode register. | |
i_config_reg | 6 | Input | Used to configure the I2C Master Controller (see Table 1) |
i_mode_reg 8 | Input | Sets the various modes of operation like speed, read/write (see Table 1) | |
o_cmd_status_reg | 8 | Output | Lets the user know the status of the operation, I2C bus (see Table 1) |
o_start_ack | 1 | Output | Acknowledge to the start bit provided by the user through i_config_reg |
i_transmit_data | 8 | Input | Data to be transmitted over the SDA line to the I2C slave |
o_transmit_data_requested | 1 | Output | Lets the user know that transmit data is required |
o_received_data_valid | 1 | Output | A ‘1’ corresponds to valid data availability on the o_receive_data line |
o_receive_data | 8 | Output | Received data bus |
io_scl 1 | Inout | I2C clock line | |
io_sda 1 | Inout | I2C data line |
I have create an account on the website you recommend and wait now for the confirmation mail. If i make any progress, i will let you know
module inst ( inout pin, input oe, input din, output dout); SB_IO #( .PIN_TYPE(6'b1010_01), .PULLUP(1'b0) ) triState ( .PACKAGE_PIN(pin), .OUTPUT_ENABLE(!oe), .D_OUT_0(din), .D_IN_0(dout) );endmodule
--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el-lado-libre+unsubscribe@googlegroups.com.
Para publicar en este grupo, envía un correo electrónico a fpga-wars-explorando-el-lado-li...@googlegroups.com.
Visita este grupo en https://groups.google.com/group/fpga-wars-explorando-el-lado-libre.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/fpga-wars-explorando-el-lado-libre/141d44bf-829f-48c3-931b-174c5f91b0da%40googlegroups.com.
Because of the SDA line:
I declare the SDA pin as an inout and instantiate it in the instantiate.v file called from i2c_master. There is a code block how you implement such a Pin which must be read and write (previously I had done it with an if else structure where the else case was 'bz, but then was there an error because yosys doesn't support tristate).
I don't understand your question with the ACK but after the master sends the address, the corresponding slave answered with an acknowledge. If you read, the master must send the ACK to tell the slave that he must send one more byte and if you write, the slave must do the ACK. With this ACK the slave tells the master that he has some more bytes to send.
So far I had not implemented it in IceStudio yet but I will do it if it is working stable. I thing that it will not be a problem.
Regards
Kai