1
0
mirror of https://github.com/olofk/serv.git synced 2026-02-13 10:53:59 +00:00

lh, lw, lbu, lhu, sb, sh, slti

This commit is contained in:
Olof Kindgren
2018-11-01 22:51:51 +01:00
parent c90920d9b2
commit 8409aa4c4b
4 changed files with 50 additions and 17 deletions

View File

@@ -76,11 +76,11 @@ module serv_top_tb;
if (d_ca_en & d_ca_cmd & (d_ca_adr == 32'h10000000))
catch_write <= 1'b1;
if (catch_write & d_dm_en & d_dm_msk[0]) begin
if (((d_ca_en & d_ca_cmd & (d_ca_adr == 32'h10000000)) |catch_write) & d_dm_en & d_dm_msk[0]) begin
dbg <= 1'b1;
$write("%c", d_dm_dat[7:0]);
$fflush();
catch_write = 1'b0;
catch_write <= 1'b0;
end
end
vlog_tb_utils vtu();