I have this problem when I simulated it.

OP #3989087
Hi everybody,
I don't understand this problem:


S1 is concurrent.

signal s1: std_logic_vector(7 downto 0):="10101010";
constant c1: std_logic_vector(7 downto 0):="10101010";

When i make this assignation:   s1(7 downto 1)<= s1(6 downto 0);


In the Modelsim tool, I have shown S1 <="00000000";  instead of 
s1<="01010100"

Why?

Thank you for your assitance.
Guest #3989150
Hi,

I make this code:

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;


entity CONcurrence is
end CONcurrence;

architecture data of CONcurrence is

signal s1: std_logic_vector(7 downto 0):="10101010";
constant c1: std_logic_vector(7 downto 0):="10101010";

begin

s1(7 downto 1)<= s1(6 downto 0);

end Behavioral;


Best Regards.
Guest #3989162
>begin
>s1(7 downto 1)<= s1(6 downto 0);
>end Behavioral;

Without clock?! You should draw it with FlipFlops. Try it!
Guest #3989333
lan100 wrote:

do you really mean
> begin
>
> s1(7 downto 1)<= s1(6 downto 0);
>
> end Behavioral;

or should it be
1
begin
2
   s1(7 downto 1)<= c1(6 downto 0);
3
end Behavioral;

(note the constant c1 here). In your case you are forming a 
combinatorial loop...

Tschaebe
Moderator (Company: Titel) #3989342
lan100 wrote:
> It works but i don't want the behavioral style but by dataflow style.
Sounds like bullshit bingo. The only thing you have there is a 
combinational loop. It makes no sense on real hardware.

And for simulation: just draw it yourself on a sheet of paper. After 7 
iterations of this assignment there's no additional change and you have 
what you get...

Edit: too slow... ;-)

Reply

A question of your own? This thread is over 11 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

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.