12 karma · joined May 4, 2020 (6y ago) · 5 submissions
comment 9mo ago · link · parent
from z3 import *
s = Solver()
s.set("timeout", 600)
a = Int('a')
b = Int('b')
c = Int('c')
s.add(a > 0)
s.add(b > 0)
s.add(c > 0)
theorem = a ** 3 + b ** 3 != c ** 3
if s.check(Not(theorem)) == sat:
print(f"Counterexample: {s.model()}")
else:
print("Theorem true")comment 2y ago · link · parent
As a bonus, this means the documentation will always be up to date with the version you are using. I guess if you want to look at older or newer versions the downside is you’ll have to download the app.
comment 2y ago · link · parent
It's impractical for most new/independent hardware languages to go to some kind of netlist, because the components/modules you will have available will vary greatly depending on your final target. Depending on if you are going to target a specific Intel FPGA, Xilinx FPGA or even a custom ASIC with a specific cell library, the netlist will look very different, and even the tools translating from Verilog will look different.
As an aside though, Verilog is quite versatile, so you can actually represent a netlist in Verilog itself with custom cell libraries. Instead you refer to Verilog you normally write in as a register transfer level (RTL) description.
comment 3y ago · link · parent
5.
Downloading Academic Papers Automatically(yannherklotz.com ↗)
4 points · by ymherklotz · 4y ago · discuss