Forum: FPGA, VHDL & Verilog Traffic Light VHDL , counter

von Gabriel (Guest)

Rate this post
0 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...
library ieee;
use ieee.std_logic_1164.all;

entity TimerCircuits is 
port (LongTrig, ShortTrig, Clk: in std_logic;
TS,TL : buffer std_logic);
end entity TimerCircuits;

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

end component OneShot;

signal SetCountLong, SetCountShort: integer range 0 to 25; 
SetCountLong <= 25;
SetCountShort <=4;
TLong:OneShot port map (enable=>LongTrig, Clk=>Clk, Duration=>SetCountLong, QOut=>TL);
TShort:OneShot port map (enable=>ShortTrig, Clk=>Clk, Duration=>SetCountShort, QOut=>TS);
end architecture TimerBehavior;

: Edited by Moderator
von Lothar M. (lkmiller) (Moderator)

Rate this post
0 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:
  VHDL code


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.