Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - inc2modL architecture

 
Thread Tools Search this Thread
Old 08-19-2006, 05:31 PM   #1
Default inc2modL architecture


I need help, please, for write a simple architecture.

The entity for this architecture is:

entity inc2modL is
port ( entrada : in std_logic_vector(7 downto 0);
modulo : in std_logic_vector(7 downto 0);
reset : in std_logic;
clock : in std_logic;
salida : out std_logic_vector(7 downto 0)
);
end inc2modL;

the objective of this entity is:

salida = (entrada + 2) mod (modulo)


Anybody can help me?.

Thanks



Loppy
  Reply With Quote
Old 08-19-2006, 05:37 PM   #2
Loppy
 
Posts: n/a
Default Re: inc2modL architecture

Loppy ha escrito:

> I need help, please, for write a simple architecture.
>
> The entity for this architecture is:
>
> entity inc2modL is
> port ( entrada : in std_logic_vector(7 downto 0);
> modulo : in std_logic_vector(7 downto 0);
> reset : in std_logic;
> clock : in std_logic;
> salida : out std_logic_vector(7 downto 0)
> );
> end inc2modL;
>
> the objective of this entity is:
>
> salida = (entrada + 2) mod (modulo)
>
>


sorry,

mod is the rest of a division.

for example:

entrada := "00000111";
modulo := "00000100";

salida will be "00000001"

> Anybody can help me?.
>
> Thanks




Loppy
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inside AMD64 Architecture Silverstrand Front Page News 0 05-17-2006 01:38 PM
Re: Two Towers Defective on PS2!! Black Locust DVD Video 1 09-01-2003 07:13 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46