forked from YosysHQ/prjtrellis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
timing: Adding a basic cell timing fuzzer
Signed-off-by: David Shah <dave@ds0.me>
- Loading branch information
Showing
7 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
work/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import cell_fuzzers | ||
|
||
|
||
def main(): | ||
cell_fuzzers.build_and_add(["../../resource/picorv32_large.v", "../../resource/distributed_ram.v"]) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import database | ||
from os import path | ||
|
||
import os | ||
|
||
def cells_db_path(family, speedgrade): | ||
return path.join(database.get_db_root(), family, "timing", "speed_{}".format(speedgrade), "cells.json") | ||
tmgroot = path.join(database.get_db_root(), family, "timing") | ||
if not path.exists(tmgroot): | ||
os.mkdir(tmgroot) | ||
sgroot = path.join(tmgroot, "speed_{}".format(speedgrade)) | ||
if not path.exists(sgroot): | ||
os.mkdir(sgroot) | ||
return path.join(sgroot, "cells.json") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters