Line 339... |
Line 339... |
tbgen:
|
tbgen:
|
if testbench_generation="YES" generate
|
if testbench_generation="YES" generate
|
tbproc0:
|
tbproc0:
|
process
|
process
|
variable buff : line;
|
variable buff : line;
|
variable theend : time :=30815 ns;
|
variable theend : time :=30835 ns;
|
file mbuff : text open write_mode is "TRACE_multiplier_content.csv";
|
file mbuff : text open write_mode is "TRACE_multiplier_content.csv";
|
begin
|
begin
|
write(buff,string'("#UF multipliers test benching"));
|
write(buff,string'("#UF multipliers test benching"));
|
writeline(mbuff, buff);
|
writeline(mbuff, buff);
|
write(buff,string'("#{Time} {m0result} {m1result} {m2result} {m3result} {m4result} {m5result}"));
|
write(buff,string'("#{Time} {m0result} {m1result} {m2result} {m3result} {m4result} {m5result}"));
|
Line 377... |
Line 377... |
end loop displayRom;
|
end loop displayRom;
|
end process tbproc0;
|
end process tbproc0;
|
tbproc1:
|
tbproc1:
|
process
|
process
|
variable buff : line;
|
variable buff : line;
|
|
variable theend : time :=30795 ns;
|
file fbuff : text open write_mode is "TRACE_decoded_factors_content.csv";
|
file fbuff : text open write_mode is "TRACE_decoded_factors_content.csv";
|
begin
|
begin
|
|
|
write(buff,string'("#UF factors decoded test benching"));
|
write(buff,string'("#UF factors decoded test benching"));
|
writeline(fbuff, buff);
|
writeline(fbuff, buff);
|
Line 420... |
Line 421... |
write (buff,string'(","));
|
write (buff,string'(","));
|
hexwrite_0 (buff,m5f1(17 downto 0));
|
hexwrite_0 (buff,m5f1(17 downto 0));
|
write (buff,string'(" }"));
|
write (buff,string'(" }"));
|
writeline(fbuff,buff);
|
writeline(fbuff,buff);
|
wait for tclk;
|
wait for tclk;
|
|
if now>=theend then
|
|
wait;
|
|
end if;
|
end loop displayRom;
|
end loop displayRom;
|
end process tbproc1;
|
end process tbproc1;
|
|
|
tbproc2:
|
tbproc2:
|
process
|
process
|
variable buff : line;
|
variable buff : line;
|
|
variable theend : time :=30855 ns;
|
file rbuff : text open write_mode is "TRACE_results_content.csv";
|
file rbuff : text open write_mode is "TRACE_results_content.csv";
|
begin
|
begin
|
|
|
write(buff,string'("#UF results test benching"));
|
write(buff,string'("#UF results test benching"));
|
writeline(rbuff, buff);
|
writeline(rbuff, buff);
|
Line 455... |
Line 460... |
write (buff,string'("}{"));
|
write (buff,string'("}{"));
|
hexwrite_0 (buff,stage2a4(31 downto 0));
|
hexwrite_0 (buff,stage2a4(31 downto 0));
|
write (buff,string'(" }"));
|
write (buff,string'(" }"));
|
writeline(rbuff,buff);
|
writeline(rbuff,buff);
|
wait for tclk;
|
wait for tclk;
|
|
if now>=theend then
|
|
wait;
|
|
end if;
|
end loop displayRom;
|
end loop displayRom;
|
end process tbproc2;
|
end process tbproc2;
|
|
|
end generate tbgen;
|
end generate tbgen;
|
|
|