Clarify a few comments. NFC.
This commit is contained in:
parent
06c45c9ff0
commit
b44870e779
|
@ -576,7 +576,7 @@ class _RHSValueCompiler(_ValueCompiler):
|
||||||
res_bits, res_sign = value.shape()
|
res_bits, res_sign = value.shape()
|
||||||
res = self.s.rtlil.wire(width=res_bits, src=src(value.src_loc))
|
res = self.s.rtlil.wire(width=res_bits, src=src(value.src_loc))
|
||||||
# Note: Verilog's x[o+:w] construct produces a $shiftx cell, not a $shift cell.
|
# Note: Verilog's x[o+:w] construct produces a $shiftx cell, not a $shift cell.
|
||||||
# However, Migen's semantics defines the out-of-range bits to be zero, so it is correct
|
# However, nMigen's semantics defines the out-of-range bits to be zero, so it is correct
|
||||||
# to use a $shift cell here instead, even though it produces less idiomatic Verilog.
|
# to use a $shift cell here instead, even though it produces less idiomatic Verilog.
|
||||||
self.s.rtlil.cell("$shift", ports={
|
self.s.rtlil.cell("$shift", ports={
|
||||||
"\\A": self(lhs),
|
"\\A": self(lhs),
|
||||||
|
|
|
@ -88,11 +88,8 @@ class BuildPlan:
|
||||||
if run_script:
|
if run_script:
|
||||||
if sys.platform.startswith("win32"):
|
if sys.platform.startswith("win32"):
|
||||||
# Without "call", "cmd /c {}.bat" will return 0.
|
# Without "call", "cmd /c {}.bat" will return 0.
|
||||||
# See https://stackoverflow.com/a/30736987 for a detailed
|
# See https://stackoverflow.com/a/30736987 for a detailed explanation of why.
|
||||||
# explanation of why, including disassembly/decompilation
|
# Running the script manually from a command prompt is unaffected.
|
||||||
# of relevant code in cmd.exe.
|
|
||||||
# Running the script manually from a command prompt is
|
|
||||||
# unaffected- i.e. "call" is not required.
|
|
||||||
subprocess.check_call(["cmd", "/c", "call {}.bat".format(self.script)])
|
subprocess.check_call(["cmd", "/c", "call {}.bat".format(self.script)])
|
||||||
else:
|
else:
|
||||||
subprocess.check_call(["sh", "{}.sh".format(self.script)])
|
subprocess.check_call(["sh", "{}.sh".format(self.script)])
|
||||||
|
|
Loading…
Reference in a new issue