typos fixées
This commit is contained in:
parent
98d8c2788e
commit
9ec2a36613
22
alu_tb.vhdl
22
alu_tb.vhdl
|
@ -85,16 +85,16 @@ begin
|
|||
report "[test_01] addition of 32 random numbers, range between (0 to 536870911)";
|
||||
|
||||
la : for va in 0 to 31 loop
|
||||
-- calcul the first random number
|
||||
|
||||
uniform(seed1, seed2, x);
|
||||
y := integer(floor(x * 536870911.0));
|
||||
-- assign the random number to op1
|
||||
|
||||
op1 <= std_logic_vector(to_unsigned(y, op1'length));
|
||||
|
||||
-- calcul the second random number
|
||||
|
||||
uniform(seed1, seed2, x);
|
||||
y := integer(floor(x * 536870911.0));
|
||||
-- assign the random number to op2
|
||||
|
||||
op2 <= std_logic_vector(to_unsigned(y, op2'length));
|
||||
wait for 1 ns;
|
||||
vtemp := (std_logic_vector(unsigned("0" & op1) + unsigned("0" & op2) + to_unsigned(bit_to_integer(cin), 1)));
|
||||
|
@ -205,16 +205,16 @@ begin
|
|||
cmd <= "10";
|
||||
wait for 1 ns;
|
||||
lc : for vc in 0 to 31 loop
|
||||
-- calcul the first random number
|
||||
|
||||
uniform(seed1, seed2, x);
|
||||
y := integer(floor(x * 536870911.0));
|
||||
-- assign the random number to op1
|
||||
|
||||
op1 <= std_logic_vector(to_unsigned(y, op1'length));
|
||||
|
||||
-- calcul the second random number
|
||||
|
||||
uniform(seed1, seed2, x);
|
||||
y := integer(floor(x * 536870911.0));
|
||||
-- assign the random number to op2
|
||||
|
||||
op2 <= std_logic_vector(to_unsigned(y, op2'length));
|
||||
wait for 1 ns;
|
||||
vtemp := (("0" & op1) or ("0" & op2));
|
||||
|
@ -245,13 +245,13 @@ begin
|
|||
cmd <= "11";
|
||||
wait for 1 ns;
|
||||
ld : for vd in 0 to 31 loop
|
||||
-- calcul the first random number
|
||||
|
||||
uniform(seed1, seed2, x);
|
||||
y := integer(floor(x * 536870911.0));
|
||||
-- assign the random number to op1
|
||||
|
||||
op1 <= std_logic_vector(to_unsigned(y, op1'length));
|
||||
|
||||
-- calcul the second random number
|
||||
|
||||
uniform(seed1, seed2, x);
|
||||
y := integer(floor(x * 536870911.0));
|
||||
-- assign the random number to op2
|
||||
|
|
Loading…
Reference in New Issue