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 => 'Z'); but there is an error message during compliation: Error (10514): VHDL aggregate error at cycloneIII_3c25_start_my_first_fpga_top.vhd(101): can't determine type of aggregate -- found 0 possible types In the previous design, I used Xilinx FPGA with Verilog HDL, these statements worked well: IBUF sda_ibuf (.I (sda_io), .O (sda_in)); OBUFE sda_obuf (.I (1'b0), .E (drive_sda), .O (sda_io)); I have tried to find the Altera equivalent components (IBUF, OBUFE etc ...) to instantiate, does anyone know what these could be and where to find in Altera Quartus? Thanks for helping a newbie.