I have this problem when I simulated it.

OP #3989087
Rate this post
useful
not useful
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
Rate this post
useful
not useful
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.
Moderator (Company: Titel) #3989342
Rate this post
useful
not useful
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

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now