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

Reply

VHDL - ModelSim ACTEL 6.1b help

 
Thread Tools Search this Thread
Old 01-06-2007, 02:57 PM   #1
Default ModelSim ACTEL 6.1b help


Hi,
I'm a new user for work with a fpga components, I use ACTEL Fusion
Starter KIT.
I dont understand why this code dont work in ModelSim ACTEL 6.1b when
compile follow code :

-- mytimer.vhd

library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity mytimer_1 is
port(
clkin: in std_logic;
reset: in std_logic;
start: in std_logic;
led_o: out std_logic
);
end mytimer_1;

architecture behave of mytimer_1 is
signal clkout: std_logic;
signal led: std_logic;

signal counter: std_logic_vector(2 downto 0);
signal tempo: std_logic_vector(19 downto 0);

begin
led_o <= led;
process(clkin) begin
if(rising_edge(clkin)) then
if(tempo = "00000000000000000000") then
tempo <= "11110100001001000000";
clkout <= '1';
else
tempo <= tempo -'1';
clkout <= '0';
end if;
end if;
end process;

process(reset,start,clkout,counter) begin
if(reset='0')then
counter <= "000";
led <= '1';
else
if(start='0')then
led <= '0';
counter <= "000";
else
if(rising_edge(clkout))then
counter <= counter +'1';
end if;
if(counter > "101")then
led <= '1';
counter <= "000";
end if;
end if;
end if;
end process;
end behave;

Regards
Ivano


Ivangray
  Reply With Quote
Old 01-07-2007, 03:04 PM   #2
Ajeetha
 
Posts: n/a
Default Re: ModelSim ACTEL 6.1b help
Hi,
What do you mean by "it doesn't work"? Show us the exact error (Sorry
I didn't compile your code to see the error myself)

Ajeetha, CVC
www.noveldv.com

Ivangray wrote:
> Hi,
> I'm a new user for work with a fpga components, I use ACTEL Fusion
> Starter KIT.
> I dont understand why this code dont work in ModelSim ACTEL 6.1b when
> compile follow code :




Ajeetha
  Reply With Quote
Old 01-07-2007, 10:19 PM   #3
Ivangray
 
Posts: n/a
Default Re: ModelSim ACTEL 6.1b help
Ajeetha ha scritto:
> Hi,
> What do you mean by "it doesn't work"? Show us the exact error (Sorry
> I didn't compile your code to see the error myself)
>
> Ajeetha, CVC
> www.noveldv.com
>
> Ivangray wrote:
>> Hi,
>> I'm a new user for work with a fpga components, I use ACTEL Fusion
>> Starter KIT.
>> I dont understand why this code dont work in ModelSim ACTEL 6.1b when
>> compile follow code :

>

Now compile. On manual I see must use -explict.
The problem now is tempo value is alwais XXXXXXXXXXXXXXXXXXXX i dont
understand this error.

regards
Ivano


Ivangray
  Reply With Quote
Old 01-08-2007, 08:16 AM   #4
Thomas Stanka
 
Posts: n/a
Default Re: ModelSim ACTEL 6.1b help

Ivangray schrieb:

> Now compile. On manual I see must use -explict.
> The problem now is tempo value is alwais XXXXXXXXXXXXXXXXXXXX i dont
> understand this error.


Take your code, assume tempo=XXXXXXXXXXXXXXXXXXXXXXX and think about
what your code would do on the next clock cycle.

Maybe you should start with a reset to set tempo in a known state.

bye Thomas



Thomas Stanka
  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
Error in Modelsim 6.0a boitsas Software 1 10-26-2009 05:36 AM
simprim problems on modelsim saiyijinprince Hardware 2 04-05-2007 02:24 PM
Need help on Modelsim VHDL syntax? ASAP:) kaji General Help Related Topics 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 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