jackimoon
Newbie level 2
- Joined
- Dec 24, 2012
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,291
a question on VHDL code(many thanks)
if I identify "mod" as this:
"port(mod:in std_logic_vector(3 downto 0) );"
then how can I use this sentence:
" if(s<mod)then
s<=s+1;co<='0';
elsif(s=mod)then
co<='1';s<="0000";
end if;"
(I'm a novice ,thanks for any help~~~~)
if I identify "mod" as this:
"port(mod:in std_logic_vector(3 downto 0) );"
then how can I use this sentence:
" if(s<mod)then
s<=s+1;co<='0';
elsif(s=mod)then
co<='1';s<="0000";
end if;"
(I'm a novice ,thanks for any help~~~~)
Last edited: