From a2204cebed68256d8a650d8178ebb1707af41fdb Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Sat, 23 Dec 2023 19:32:07 +0800 Subject: [PATCH] =?UTF-8?q?>=20sim=20RTL=20ysyx=5F22040000=20=E6=9D=8E?= =?UTF-8?q?=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.1.65=20#1-NixOS=20SMP?= =?UTF-8?q?=20PREEMPT=5FDYNAMIC=20Sun=20Dec=20=203=2006:32:13=20UTC=202023?= =?UTF-8?q?=20x86=5F64=20GNU/Linux=20=2019:32:07=20=20up=20=2022:30,=20=20?= =?UTF-8?q?2=20users,=20=20load=20average:=200.34,=200.57,=200.64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/Makefile | 2 +- npc/csrc/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/Makefile b/npc/Makefile index 54a4902..b1ea816 100644 --- a/npc/Makefile +++ b/npc/Makefile @@ -21,4 +21,4 @@ include ../Makefile .PHONY: clean clean: - $(RM) -r $(OBJDIR) \ No newline at end of file + $(RM) -r $(OBJDIR) diff --git a/npc/csrc/main.cpp b/npc/csrc/main.cpp index 834439f..9f178e3 100644 --- a/npc/csrc/main.cpp +++ b/npc/csrc/main.cpp @@ -8,7 +8,7 @@ int main(int argc, char **argv, char **env) { Verilated::commandArgs(argc, argv); Vexample *top = new Vexample; int round = 100; - while (1) { + while (round--) { int a = rand() & 1; int b = rand() & 1; top->a = a;