68 lines
1.2 KiB
VHDL
68 lines
1.2 KiB
VHDL
architecture rtl of fifo is
|
|
|
|
begin
|
|
|
|
-- Typical formatting
|
|
|
|
process is
|
|
begin
|
|
|
|
with (mux_select or reset) select addr :=
|
|
"0000" when 0,
|
|
"0001" when 1,
|
|
"1111" when others;
|
|
|
|
with (mux_select or reset) select addr <= force
|
|
"0000" when 0,
|
|
"0001" when 1,
|
|
"1111" when others;
|
|
|
|
with (mux_select or reset) select addr <=
|
|
"0000" when 0,
|
|
"0001" when 1,
|
|
"1111" when others;
|
|
|
|
end process;
|
|
|
|
with (mux_select or reset) select addr <= guarded
|
|
"0000" when 0,
|
|
"0001" when 1,
|
|
"1111" when others;
|
|
|
|
|
|
-- Invalid formatting
|
|
|
|
process is
|
|
begin
|
|
|
|
with (mux_select or reset) select addr :=
|
|
"0000" when 0,
|
|
"0001" when 1,
|
|
"1111" when others;
|
|
|
|
with (mux_select or reset) select addr <= force
|
|
"0000" when 0,
|
|
"0001" when 1,
|
|
"1111" when others;
|
|
|
|
with (mux_select or reset) select addr <=
|
|
"0000" when 0,
|
|
"0001" when 1,
|
|
"1111" when others;
|
|
|
|
end process;
|
|
|
|
with (mux_select or reset) select addr <= guarded
|
|
"0000" when 0,
|
|
"0001" when 1,
|
|
"1111" when others;
|
|
|
|
-- Parenthesis formatting
|
|
|
|
with mux_sel select addr <=
|
|
c_input_data when 0,
|
|
c_output_data when 1,
|
|
(others => 'X') when others;
|
|
|
|
end architecture rtl;
|