mirror of
https://github.com/MPSU/APS.git
synced 2025-09-16 09:40:10 +00:00
ЛР7. Переименование DUT в тб
This commit is contained in:
committed by
GitHub
parent
811c2f467d
commit
4875fb8ff8
@@ -13,7 +13,7 @@ module lab_07_tb_processor_system();
|
|||||||
reg clk;
|
reg clk;
|
||||||
reg rst;
|
reg rst;
|
||||||
|
|
||||||
processor_system system(
|
processor_system DUT(
|
||||||
.clk_i(clk),
|
.clk_i(clk),
|
||||||
.rst_i(rst)
|
.rst_i(rst)
|
||||||
);
|
);
|
||||||
@@ -34,12 +34,12 @@ module lab_07_tb_processor_system();
|
|||||||
end
|
end
|
||||||
|
|
||||||
stall_seq: assert property (
|
stall_seq: assert property (
|
||||||
@(posedge system.core.clk_i) disable iff ( system.core.rst_i )
|
@(posedge DUT.core.clk_i) disable iff ( DUT.core.rst_i )
|
||||||
system.core.mem_req_o |-> (system.core.stall_i || $past(system.core.stall_i))
|
DUT.core.mem_req_o |-> (DUT.core.stall_i || $past(DUT.core.stall_i))
|
||||||
)else $error("\nincorrect implementation of stall signal\n");
|
)else $error("\nincorrect implementation of stall signal\n");
|
||||||
|
|
||||||
stall_seq_fall: assert property (
|
stall_seq_fall: assert property (
|
||||||
@(posedge system.core.clk_i) disable iff ( system.core.rst_i )
|
@(posedge DUT.core.clk_i) disable iff ( DUT.core.rst_i )
|
||||||
(system.core.stall_i) |=> !system.core.stall_i
|
(DUT.core.stall_i) |=> !DUT.core.stall_i
|
||||||
)else $error("\nstall must fall exact one cycle after rising\n");
|
)else $error("\nstall must fall exact one cycle after rising\n");
|
||||||
endmodule
|
endmodule
|
||||||
|
Reference in New Issue
Block a user