Skip to content

Commit

Permalink
Merge pull request #217 from IAmMarcelJung/hotfix/fix_simulation_command
Browse files Browse the repository at this point in the history
Fix .fst generation in run_simulation and correct signal generation for the demo design in the test bench
  • Loading branch information
KelvinChung2000 authored Jul 30, 2024
2 parents cde60b2 + 058eec8 commit 77ff8e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion FABulous.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,10 @@ def do_run_simulation(self, args):
make_hex(f"{self.projectDir}/{path}/{bitstream}", f"{self.projectDir}/{path}/{bitstream_hex}")

try:
runCmd = ["vvp", f"{self.projectDir}/{path}/{vvp_file}"]
if optional_arg == "fst":
runCmd = ["vvp", f"{self.projectDir}/{path}/{vvp_file}", "-fst"]
else:
runCmd = ["vvp", f"{self.projectDir}/{path}/{vvp_file}"]
sp.run(runCmd, check=True)
except sp.CalledProcessError:
logger.error("Simulation failed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ module sequential_16bit_en_tb;
end
`endif
repeat (100) @(posedge CLK);
O_top = 28'b1; // reset
O_top = 28'b11; // enable and reset
repeat (5) @(posedge CLK);
O_top = 28'b0;
O_top = 28'b10;
for (i = 0; i < 100; i = i + 1) begin
@(negedge CLK);
$display("fabric(I_top) = 0x%X gold = 0x%X, fabric(T_top) = 0x%X gold = 0x%X", I_top, I_top_gold, T_top, T_top_gold);
Expand Down

0 comments on commit 77ff8e6

Please sign in to comment.