# where direction is "+" for out, "-" for in, "*" for bi-directionaly
if len(pad) == 4:
print("4-long io", pad)
- if pad[-1] == '-':
- en_sig = 'io_in'
- if pad[-1] == '+':
- en_sig = 'io_out'
- padspec = [padside, None, padname, pad[1], pad[2], en_sig]
+ padspec = [padside, None, padname, pad[1], pad[2]]
# format here is:
# ['padname', 'something', 'to core', 'from core', 'en', 'direction']
; gpio_o : out bit_vector(15 downto 0)
; gpio_oe : out bit_vector(15 downto 0)
; sdram_dq_o : out bit_vector(15 downto 0)
- ; io_in : out bit
- ; io_out : out bit
; vdd : linkage bit
; vss : linkage bit
);
begin
- zero_1 : zero_x0
- port map ( nq => io_in
- , vdd => vdd
- , vss => vss
- );
-
zero_0 : zero_x0
port map ( nq => i2c_scl
, vdd => vdd
, vss => vss
);
- one_0 : one_x0
- port map ( q => io_out
- , vdd => vdd
- , vss => vss
- );
-
end structural;