Without seeing the full context it’s hard to guess what’s going on, but as a first guess - are you using the SB_IO block to set the pins to input mode? I believe (through my own experimentation), that the pins default to output only mode.
The code below may help.
) input_wire_conf (
This puts the pin into simple input mode (with output disabled and no pull-up), and assigns the input to “input_wire”.
If you want to use the pin in both input and output mode (as it seems you do with your “inout” declarations), you’ll also need to configure the “OUTPUT_ENABLE” line of the IO block, and use it to switch between input and output mode.
wire input_wire, output_wire;
) io_wire_conf (
You can find details about the SB_IO block, and what the parameters mean in the Lattice ICE Technology Library documentation.
Hope that helps.