shaiko
Advanced Member level 5
I'm writing VHDL code for an FPGA that sits on a PCB with a design error .
The're FPGA registers that are mapped to output pins - 3 of the pins in the PCB schematics, have been accidentally shorted to a single trace...I want only one of those output pins to drive a valid logic value and the others high 'Z'.
This is the code for the output registers:
what do you think about it ?
The're FPGA registers that are mapped to output pins - 3 of the pins in the PCB schematics, have been accidentally shorted to a single trace...I want only one of those output pins to drive a valid logic value and the others high 'Z'.
This is the code for the output registers:
what do you think about it ?
-- memory is a 16 X 16 flipflop array
if rising edge ( clk ) then
if write_request = '1' then
if write_address = "00001111" then -- this is the register address whose 3 of his bits are shorted on the PCB
memory ( 15 ) ( 15 downto 3 ) <= internal ( 15 downto 3 ) ;
mem_out ( 15 ) ( 2 downto 1 ) <= "ZZ" ;
mem_out ( 15 ) ( 0 ) <= data ( 0 ) ;
else
mem ( to_integer ( write_address ) ) <= data ;
end if ;
end if ;
end if;
Last edited: