Forum Discussion
Altera_Forum
Honored Contributor
13 years agoCyclone III -- IO port in VHDL help
I'm writing a small code to simulate the I2C. In VHDL, the "sda_io" is defined as an IO port. I thought this simple statement should work: sda_io <= '0' when drive_sda = '1' else (other => '...
Altera_Forum
Honored Contributor
13 years agoif sda_io is a std_logic, I think you meant:
sda_io <= '0' when drive_sda = '1' else 'Z'; first of all, the keyword is "others" not other, and you cannot use others on a non-array signal.