library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity Pos_Controller is
port
(
L, R, U, D, Move, Reset: in std_logic;
Init_X, Init_Y: out std_logic_vector(9 downto 0)
);
end Pos_Controler;
architecture arch of Pos_Controller is
Constant Len : unsigned(2 downto 0):= "111";
signal x, y: unsigned(9 downto 0):= "0011001010";
begin
Init_X <= std_logic_vector(x);
Init_Y <= std_logic_vector;
Process(Move, Reset)
begin
-FILL IN
end arch;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity Pos_Controller is
port
(
L, R, U, D, Move, Reset: in std_logic;
Init_X, Init_Y: out std_logic_vector(9 downto 0)
);
end Pos_Controler;
architecture arch of Pos_Controller is
Constant Len : unsigned(2 downto 0):= "111";
signal x, y: unsigned(9 downto 0):= "0011001010";
begin
Init_X <= std_logic_vector(x);
Init_Y <= std_logic_vector;
Process(Move, Reset)
begin
-FILL IN
end arch;