Skip to content

Instantly share code, notes, and snippets.

@3Nigma
Created July 9, 2013 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3Nigma/5962035 to your computer and use it in GitHub Desktop.
Save 3Nigma/5962035 to your computer and use it in GitHub Desktop.
Tri-state VHDL principle
tri_st_data : process (mem_write_data, data, cur_memc_st)
begin
if (cur_memc_st = ctrl_wait_for_write) then
data <= mem_write_data;
else
data <= (others => 'Z');
end if;
mem_read_data <= data;
end process tri_st_data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment