diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-10-02 16:47:23 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-10-02 23:29:46 -0600 |
| commit | 2c6998db4ad3b663fa32384739bc11930be5afa2 (patch) | |
| tree | bf8e324a24adb67d9ad4dfcfc013b67ad75b9eed /tb/platform.sv | |
| parent | fbe3ab39675d338eb6d5388b7deacf98a3a8ae2d (diff) | |
tb: implement verilated slaves
Diffstat (limited to 'tb/platform.sv')
| -rw-r--r-- | tb/platform.sv | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/tb/platform.sv b/tb/platform.sv index 13b94d7..fddf6e8 100644 --- a/tb/platform.sv +++ b/tb/platform.sv @@ -310,6 +310,21 @@ module platform .* ); + word smp_readdata, smp_writedata; + logic smp_read, smp_write; + + sim_slave smp_sim + ( + .read(smp_read), + .write(smp_write), + .address(), + .readdata(smp_readdata), + .writedata(smp_writedata), + .waitrequest(0), + + .* + ); + logic step_0, step_1, step_2, step_3, halt_0, halt_1, halt_2, halt_3, breakpoint_0, breakpoint_1, breakpoint_2, breakpoint_3, @@ -317,10 +332,10 @@ module platform smp_ctrl smp ( - .avl_read(0), - .avl_write(0), - .avl_writedata(), - .avl_readdata(), + .avl_read(smp_read), + .avl_write(smp_write), + .avl_writedata(smp_writedata), + .avl_readdata(smp_readdata), .* ); |
