There are no HDL sources in file set 'sources_1'. Please use the Add Sources command.

Guest #4336337
Rate this post
• ▲ useful
▼ not useful
Hi,

I am getting an error : There are no HDL sources in file set 
'sources_1'. Please use the Add Sources command.

The code file and the error screenshot are attached. Please let me know 
what could be the cause of error and how to remove it.

Thanks and regards,
Rohan Narkhede
Guest #4337421
Rate this post
• ▲ useful
▼ not useful
If you use tabs consequently, it is very easy to observe, like:

1
entity reg is
2
  port(
3
    clk     : in  std_logic;
4
    ...
5
    reset   : in  std_logic
6
  );
7
end entity reg;
8

9
architecture reg_arch of reg is
10
  signal r_reg : std_logic_vector(1 downto 0);
11
  ...
12
begin
13
  process(clk)
14
  begin
15
    if reset = '1' then
16
    ...
17
    elsif rising_edge(clk) then
18
      if ctrl0 = '0' ... then
19
      ...
20
      elsif ...
21
      ...
22
      elsif ...
23
      ...
24
      end if;
25
      <<<<<<<<<<<<<<<<<<< here is something obviously missing!
26
  end process;
27

28
  dout <= r_reg;
29
  
30
end architecture;

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.