URL
https://opencores.org/ocsvn/tinycpu/tinycpu/trunk
[/] [tinycpu/] [trunk/] [testbench/] [top_tb.vhd] - Diff between revs 25 and 28
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 25 |
Rev 28 |
Line 96... |
Line 96... |
wait for 10 ns;
|
wait for 10 ns;
|
|
|
--start the processor
|
--start the processor
|
Reset <= '0';
|
Reset <= '0';
|
wait for 30 ns; --wait 3 clock cycles for CPU to execute first instruction
|
wait for 30 ns; --wait 3 clock cycles for CPU to execute first instruction
|
wait for 20 ns; --wait 2 clock cycle for first instruction decode and register write to complete
|
wait for 10 ns; --wait 1 clock cycle for first instruction decode
|
assert(Debugr0 = x"57") report "R0 is not loaded properly for first instruction" severity error;
|
assert(Debugr0 = x"57") report "R0 is not loaded properly for first instruction" severity error;
|
wait for 10 ns;
|
wait for 10 ns;
|
assert(DebugR0 = x"F1") report "R0 is not loaded properly for second instruction" severity error;
|
assert(DebugR0 = x"F1") report "R0 is not loaded properly for second instruction" severity error;
|
|
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.