Traffic Light VHDL , counter

Guest #4009321
Rate this post
• ▲ useful
▼ not useful
Please some help with this code, I dont know where is the problem, is 
giving me these errors:


Error: Node instance "TLong" instantiates undefined entity "OneShot"
Error: Node instance "TShort" instantiates undefined entity "OneShot"

here is the code...
1
library ieee;
2
use ieee.std_logic_1164.all;
3
use IEEE.STD_LOGIC_UNSIGNED.ALL;
4

5
entity TimerCircuits is 
6
port (LongTrig, ShortTrig, Clk: in std_logic;
7
TS,TL : buffer std_logic);
8
end entity TimerCircuits;
9

10
architecture TimerBehavior of TimerCircuits is 
11
component OneShot is 
12
port (enable, Clk : in std_logic;
13
    Duration : in integer range 0 to 25 ;
14
    QOut : buffer std_logic );
15

16
end component OneShot;
17

18
signal SetCountLong, SetCountShort: integer range 0 to 25; 
19
begin 
20
SetCountLong <= 25;
21
SetCountShort <=4;
22
TLong:OneShot port map (enable=>LongTrig, Clk=>Clk, Duration=>SetCountLong, QOut=>TL);
23
TShort:OneShot port map (enable=>ShortTrig, Clk=>Clk, Duration=>SetCountShort, QOut=>TS);
24
end architecture TimerBehavior;
Moderator (Company: Titel) #4009427
Rate this post
• ▲ useful
▼ not useful
Gabriel wrote:
> here is the code...
It that all of the code?

> Error: Node instance "TLong" instantiates undefined entity "OneShot"
The entity "OneShot" is not known here in this module. You must 
implement an entity "OneShot" and include it in the build process.

> is giving me these errors:
What toolchain give you that error?

Next time try this:
1
[vhdl]
2
  VHDL code
3
[/vhdl]

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.