mirror of https://github.com/YosysHQ/picorv32.git
Do not peek into core for cycle count in testbench
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
b7e82dfcd1
commit
f3a42746ca
|
@ -77,10 +77,13 @@ module picorv32_wrapper #(
|
|||
wire tests_passed;
|
||||
reg [31:0] irq;
|
||||
|
||||
reg [15:0] count_cycle = 0;
|
||||
always @(posedge clk) count_cycle <= resetn ? count_cycle + 1 : 0;
|
||||
|
||||
always @* begin
|
||||
irq = 0;
|
||||
irq[4] = &uut.picorv32_core.count_cycle[12:0];
|
||||
irq[5] = &uut.picorv32_core.count_cycle[15:0];
|
||||
irq[4] = &count_cycle[12:0];
|
||||
irq[5] = &count_cycle[15:0];
|
||||
end
|
||||
|
||||
wire mem_axi_awvalid;
|
||||
|
|
Loading…
Reference in New Issue