test pass

This commit is contained in:
RuigeLee
2023-08-07 11:40:14 +08:00
parent a041c7732a
commit 68e0a6a055
5 changed files with 59 additions and 42 deletions

View File

@@ -86,7 +86,7 @@ int main(int argc, char **argv, char **env) {
top->io_reset = 1;
top->io_SCK = 0;
// top->io_SCK = 0;
top->io_clk4 = 0;
while(!Verilated::gotFinish()) {
@@ -98,11 +98,11 @@ int main(int argc, char **argv, char **env) {
top->io_reset = 0;
}
if ( main_time % 400 == 100 ) {
top->io_SCK = 1;
} else if ( main_time % 400 == 300 ) {
top->io_SCK = 0;
}
// if ( main_time % 400 == 100 ) {
// top->io_SCK = 1;
// } else if ( main_time % 400 == 300 ) {
// top->io_SCK = 0;
// }
if ( main_time % 100 == 10 ) {
top->io_clk4 = 1;
@@ -119,7 +119,7 @@ int main(int argc, char **argv, char **env) {
top->io_spi_bits_op = 0x01;
top->io_spi_bits_hash = 0x0;
} else if( main_time == 50400 ){
} else if( main_time == 50100 ){
top->io_spi_valid = 0;
}
@@ -140,7 +140,7 @@ int main(int argc, char **argv, char **env) {
top->io_spi_bits_op = 0x00;
top->io_spi_bits_hash = 0x0;
} else if( main_time == 250400 ){
} else if( main_time == 250100 ){
top->io_spi_valid = 0;
}