Where is the fatal error? I couldnt find it

Guest #7143005
Rate this post
useful
not useful
Hello everyone,

I compiled the 2 codes I gave in the attachment on Questasim without any 
errors. But when i want to start simulation i get this error but i 
couldn't find any problem. I'm new at this job, I'd be very happy if you 
could help.
Attached files:
Guest #7143072
Rate this post
useful
not useful
Maybe you have to give every value the correct 4bit.

If the int is 9 (1001) so the Segments are all on (111 1111).
How is it decided what time is the alarm time?
Does the current time just count up from 0 to 9?
Guest #7143213
Rate this post
useful
not useful
There are some issues with your design. First, as already noted, you're 
trying to assign vectors of different lengths. Second, you're driving 
DISPLAY from multiple processes. I'd suggest to just use two processes. 
One that generates the sound, the other that generates the display 
output. It should actually be something like
1
process (ALARM_TIME, CURRENT_TIME, SHOW_A)
2
begin
3
  if SHOW_A = '0' then
4
    case CURRENT_TIME is
5
      -- 7 segment encodings...
6
    end case;
7
  else
8
    case ALARM_TIME is
9
      -- 7 segment encodings...
10
    end case;
11
  end if;
12
end process;
13

14
process (ALARM_TIME, CURRENT_TIME)
15
begin
16
  if ALARM_TIME = CURRENT_TIME then
17
    SOUND_ALARM <= '1';
18
  else
19
    SOUND_ALARM <= '0';
20
  end if;
21
end process;

Note that in general one would not just assign the outputs inside a 
process. One would rather use a signal that is assigned to the output 
outside a process. Although in your case it does not matter.
Guest #7143308
Rate this post
useful
not useful
Engin wrote:
> Thanks for helping. I will test your code. I tried again, changing
> the
> code a bit. The error is as follows. My code is like this.
> What do you say about this?
>
> Thanks Again.

The entity DDRV has 3 inputs and 2 outputs. Your testbench instantiates 
the entity using 7 ports in total - the 5 former ports as in your task 
as well as two additional ports DISP_CURRENT and DISP_ALARM. These 
"ports", however, are internal signals used in the architecture. They 
don't appear as output ports, which is why the simulator is complaining 
as you're trying to connect to ports that are not assigned as ports..

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now