From 5aaa488a79757f47b5972e5a3bd8695c7ad945e1 Mon Sep 17 00:00:00 2001 From: lasse Date: Mon, 10 Feb 2025 15:34:20 +0100 Subject: [PATCH] Made timebase working with questasim --- .gitignore | 6 ++++++ ch4/timebase_tb.sv | 4 ++-- ch4/transcript | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4f52289..d39b24d 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,12 @@ devenv.local.nix obj_dir output.vcd +work +*.mti +*.mpf +transcript +*.wlf + # pre-commit .pre-commit-config.yaml diff --git a/ch4/timebase_tb.sv b/ch4/timebase_tb.sv index 70d8f03..7048360 100644 --- a/ch4/timebase_tb.sv +++ b/ch4/timebase_tb.sv @@ -16,8 +16,8 @@ module timebase_tb(); initial begin $dumpfile("output.vcd"); $dumpvars; - - reset = 0; + reset = 1; + #10; reset = 0; #200; reset = 1; $finish; end diff --git a/ch4/transcript b/ch4/transcript index 2bbbb70..2a6fb9d 100644 --- a/ch4/transcript +++ b/ch4/transcript @@ -14,3 +14,22 @@ # // 18 U.S.C. Section 1905. # // # OpenFile {C:/Users/Stan Oremus/OneDrive/Documenten/TU Delft Lasse Oremus/DSB/github/ch4/timebase.sv} +# file mkdir Line_follower_DSB +# Loading project Line_follower_DSB +# Compile of timebase_tb.sv was successful. +# Compile of timebase.sv was successful. +# Load canceled +vsim -novopt work.timebase_tb +# vsim -novopt work.timebase_tb +# Start time: 15:22:45 on Feb 10,2025 +# ** Warning: (vsim-8891) All optimizations are turned off because the -novopt switch is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features please see the User's Manual section on Preserving Object Visibility with vopt. +# Refreshing C:/Users/Stan Oremus/OneDrive/Documenten/TU Delft Lasse Oremus/DSB/github/ch4/work.timebase_tb +# Loading sv_std.std +# Loading work.timebase_tb +# Refreshing C:/Users/Stan Oremus/OneDrive/Documenten/TU Delft Lasse Oremus/DSB/github/ch4/work.timebase +# Loading work.timebase +run 200ns +# ** Note: $finish : C:/Users/Stan Oremus/OneDrive/Documenten/TU Delft Lasse Oremus/DSB/github/ch4/timebase_tb.sv(22) +# Time: 200 ns Iteration: 0 Instance: /timebase_tb +# End time: 15:23:19 on Feb 10,2025, Elapsed time: 0:00:34 +# Errors: 0, Warnings: 1