1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00
myhdl/example/manual/inc_comb.vhd
Jan Decaluwe 3b4e7dc293 examples
2010-07-02 13:24:04 +02:00

32 lines
457 B
VHDL

-- File: inc_comb.vhd
-- Generated by MyHDL 0.7dev
-- Date: Fri Jul 2 13:23:51 2010
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use std.textio.all;
use work.pck_myhdl_07dev.all;
entity inc_comb is
port (
nextCount: out unsigned(7 downto 0);
count: in unsigned(7 downto 0)
);
end entity inc_comb;
architecture MyHDL of inc_comb is
begin
nextCount <= (count + 1) mod 256;
end architecture MyHDL;