Forum Discussion
Altera_Forum
Honored Contributor
8 years agoOk, let me give you some more details:
I'm using a Cyclone V: 5CGXBC4C7F27C8 and work with Quartus Prime version 17.0 Standard Edition. The Nios consists of the cpu (Nios II/e), the cpu_memory, six PIO output ports and three PIO input ports. The I2C master is located outside the Nios, directly in the design where the Nios should be used. So far I did not connect the Nios to the rest of the design for testing (which means that the Nios is not yet connected to any I2C master so far). There is also no I2C master in the design yet, the two pins which I want to use for I2C communication are driven low by using: I2C_SCL_NA_MID <= '0'; and I2C_SDA_NA_MID <= '0';. The I2C pins are configured for bidirectional use. The pin assignments are the following: set_location_assignment PIN_AB22 -to I2C_SCL_NA_MID set_location_assignment PIN_AC23 -to I2C_SDA_NA_MID set_instance_assignment -name AUTO_OPEN_DRAIN_PINS ON -to I2C_SCL_NA_MID set_instance_assignment -name AUTO_OPEN_DRAIN_PINS ON -to I2C_SDA_NA_MID If I use other pins than PIN_AB22 and PIN_AC23 it works well. And also if I remove the Nios from the design, I'm able to drive these two pins low again. It is only not working if I add the Nios to the design. Is it possible that the Nios takes control of these two pins (or also other pins)?