Add precedence test. fixup docs

This commit is contained in:
Alex Mykyta
2022-02-28 22:05:24 -08:00
parent 404e7e8365
commit 9295cbb7c0
14 changed files with 164 additions and 55 deletions

View File

@@ -0,0 +1,26 @@
{% extends "lib/tb_base.sv" %}
{% block seq %}
{% sv_line_anchor %}
##1;
cb.rst <= '0;
##1;
// Always write both fields from hardware
cb.hwif_in.r1.f_sw.next <= '0;
cb.hwif_in.r1.f_sw.we <= '1;
cb.hwif_in.r1.f_hw.next <= '0;
cb.hwif_in.r1.f_hw.we <= '1;
@cb;
@cb;
cpuif.assert_read('h0, 'b00);
cpuif.assert_read('h4, 'h00);
cpuif.write('h0, 'b11);
cpuif.write('h0, 'b11);
cpuif.write('h0, 'b11);
cpuif.assert_read('h0, 'h00);
cpuif.assert_read('h4, 'h03);
{% endblock %}