Compare commits
No commits in common. "310ad4911528121738c28288a447824b5efba80f" and "b2449c56419e75d7ff4dd5358fe25bf0898e9e13" have entirely different histories.
310ad49115
...
b2449c5641
1
scripts/.gitignore
vendored
1
scripts/.gitignore
vendored
@ -5,4 +5,3 @@ lib
|
|||||||
lib64
|
lib64
|
||||||
pyvenv.cfg
|
pyvenv.cfg
|
||||||
__pycache__
|
__pycache__
|
||||||
gantry
|
|
||||||
|
|||||||
@ -21,11 +21,10 @@ def runDesign(topDef: str, arch: str, lib: str, std: str):
|
|||||||
libPath = os.path.join(os.getcwd(), lib)
|
libPath = os.path.join(os.getcwd(), lib)
|
||||||
wavePath = os.path.join(os.getcwd(), "wave")
|
wavePath = os.path.join(os.getcwd(), "wave")
|
||||||
command = [ ## may add -v for verbose
|
command = [ ## may add -v for verbose
|
||||||
"ghdl", "--elab-run", f"--workdir={lib}", f"--work={lib}", f"--std={std}",
|
"ghdl", "-r", f"{topDef}", f"{arch}",
|
||||||
"-o", f"{lib}/{topDef}-{arch}", f"{topDef}", f"{arch}",
|
f"--wave=../wave/{topDef}-{arch}.ghw" ##, "--read-wave-opt=<See"
|
||||||
f"--wave=wave/{topDef}-{arch}.ghw" ##, "--read-wave-opt=<See"
|
|
||||||
]
|
]
|
||||||
subprocess.run(command)
|
subprocess.run(command, cwd=libPath)
|
||||||
command = [
|
command = [
|
||||||
"gtkwave", f"{topDef}-{arch}.ghw", "--rcvar",
|
"gtkwave", f"{topDef}-{arch}.ghw", "--rcvar",
|
||||||
"do_initial_zoom_fit yes"]
|
"do_initial_zoom_fit yes"]
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
VARS="$@"
|
|
||||||
COMMAND="ghdl $VARS"
|
|
||||||
docker run -it -v .:/src -w /src ghdl/ghdl:5.0.0-dev-gcc-ubuntu-24.04 bash -c "$COMMAND"
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/fish
|
|
||||||
|
|
||||||
docker pull ghdl/ghdl:5.0.0-dev-gcc-ubuntu-24.04
|
|
||||||
fish_add_path "$(pwd)"
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PWD=$(pwd)
|
|
||||||
printf "#!/bin/bash \n$PWD/bin/python3 $PWD/gantry.py \$@" > "$PWD/gantry"
|
|
||||||
chmod +x "$PWD/gantry"
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user