mirror of
https://github.com/ParkerTenBroeck/hdl_sim.git
synced 2026-06-06 21:24:06 -04:00
added webUI
This commit is contained in:
parent
a266096f32
commit
0201990df8
16 changed files with 2590 additions and 341 deletions
|
|
@ -6,19 +6,18 @@ use ieee.numeric_std.all;
|
|||
entity circuit is
|
||||
port (
|
||||
clk: in std_logic; -- 500 Hz, period 2 ms
|
||||
key: in std_logic_vector(3 downto 0); -- active low
|
||||
sw: in std_logic_vector(9 downto 0); -- active high
|
||||
led: out std_logic_vector(9 downto 0) := (others => '0'); -- active high
|
||||
hex0: out std_logic_vector(6 downto 0) := (others => '0'); -- active low
|
||||
hex1: out std_logic_vector(6 downto 0) := (others => '0') -- active low
|
||||
key: in std_logic_vector(31 downto 0); -- active low
|
||||
sw: in std_logic_vector(31 downto 0); -- active high
|
||||
led: out std_logic_vector(31 downto 0) := (others => '0'); -- active high
|
||||
hex: out std_logic_vector(31 downto 0) := (others => '0') -- active low
|
||||
);
|
||||
end circuit;
|
||||
|
||||
|
||||
architecture description of circuit is
|
||||
signal counter: unsigned(9 downto 0) := "0000000000";
|
||||
signal counter: unsigned(31 downto 0) := x"00000000";
|
||||
begin
|
||||
led <= std_logic_vector(counter(9 downto 0));
|
||||
led <= std_logic_vector(counter);
|
||||
process(clk)
|
||||
begin
|
||||
counter <= counter+1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue