Soda
Newbie level 2
Hey,
I'm working with a project where I need to do a simple voltage level shifting between mcu databus and a pheripheral. My question is: Is it possible to tie two bidirectional pins to each other? I'm using Lattice's MachXO.
I've tried this:
BIDIR_DATA1 <= BIDIR_DATA2 when (RW = '0') else (others => 'Z');
BIDIR_DATA2 <= BIDIR_DATA1 when (RW = '1') else (others => 'Z');
When I simulate my code with modelsim, output of the busses are 'Z's.
I'll appreciate any help! VHDL and CPLD/FPGAs are quite new "play ground" for me.
I'm working with a project where I need to do a simple voltage level shifting between mcu databus and a pheripheral. My question is: Is it possible to tie two bidirectional pins to each other? I'm using Lattice's MachXO.
I've tried this:
BIDIR_DATA1 <= BIDIR_DATA2 when (RW = '0') else (others => 'Z');
BIDIR_DATA2 <= BIDIR_DATA1 when (RW = '1') else (others => 'Z');
When I simulate my code with modelsim, output of the busses are 'Z's.
I'll appreciate any help! VHDL and CPLD/FPGAs are quite new "play ground" for me.