Skip to content

Commit

Permalink
Fixed missing *passed/*failed assignments.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehoover committed Mar 17, 2020
1 parent 8a66931 commit fe372e7
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# TODO: Extend this to do formal as a job and add a job(s) for simulations.

dist: trusty
sudo: false
language: generic
Expand Down
1 change: 1 addition & 0 deletions impl/warp-v_mips-i_4-stage.tlv
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ m4+module_def
\TLV
m4+warpv()
m4+warpv_makerchip_cnt10_tb()
m4+makerchip_pass_fail()
\SV
endmodule
1 change: 1 addition & 0 deletions impl/warp-v_risc-v_1-stage.tlv
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ m4+module_def
\TLV
m4+warpv()
m4+warpv_makerchip_cnt10_tb()
m4+makerchip_pass_fail()
\SV
endmodule
1 change: 1 addition & 0 deletions impl/warp-v_risc-v_4-stage.tlv
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ m4+module_def
\TLV
m4+warpv()
m4+warpv_makerchip_cnt10_tb()
m4+makerchip_pass_fail()
\SV
endmodule
1 change: 1 addition & 0 deletions impl/warp-v_risc-v_4-stage_retime.tlv
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ m4+module_def
\TLV
m4+warpv()
m4+warpv_makerchip_cnt10_tb()
m4+makerchip_pass_fail()
\SV
endmodule
21 changes: 12 additions & 9 deletions warp-v.tlv
Original file line number Diff line number Diff line change
Expand Up @@ -2821,6 +2821,16 @@ m4+module_def
m4+formal()
'], [''])
// Hookup Makerchip *passed/*failed signals to CPU $passed/$failed.
// Args:
// /_hier: Scope of core(s), e.g. [''] or ['/core[*]'].
\TLV makerchip_pass_fail(/_hier)
|done
@0
// Assert these to end simulation (before Makerchip cycle limit).
*passed = & /top/_hier|fetch/instr>>M4_REG_WR_STAGE$passed;
*failed = | /top/_hier|fetch/instr>>M4_REG_WR_STAGE$failed;
\TLV
/* verilator lint_on WIDTH */ // Let's be strict about bit widths.
m4_ifelse_block(m4_eval(M4_CORE_CNT > 1), ['1'], ['
Expand All @@ -2830,19 +2840,12 @@ m4+module_def
m4+cpu(/core)
m4+warpv_makerchip_cnt10_tb()
//m4+simple_ring(/core, |noc_in, @1, |noc_out, @1, /top<>0$reset, |rg, /trans)
|done
@0
// Assert these to end simulation (before Makerchip cycle limit).
*passed = & /top/core[*]|fetch/instr>>M4_REG_WR_STAGE$passed;
*failed = | /top/core[*]|fetch/instr>>M4_REG_WR_STAGE$failed;
m4+makerchip_pass_fail(core[*])
'], ['
// Single Core.
m4+warpv()
m4+warpv_makerchip_cnt10_tb()
|done
@0
*passed = /top|fetch/instr>>M4_REG_WR_STAGE$passed;
*failed = /top|fetch/instr>>M4_REG_WR_STAGE$failed;
m4+makerchip_pass_fail()
'])
\SV
endmodule
Expand Down
1 change: 1 addition & 0 deletions warp-v_config.tlv
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ m4+module_def
\TLV
m4+warpv()
m4+warpv_makerchip_cnt10_tb()
m4+makerchip_pass_fail()
\SV
endmodule

0 comments on commit fe372e7

Please sign in to comment.