Verilator Updated 2025-07-16
One very good thing about this is that it makes it easy to create test cases directly in C++. You just supply inputs and clock the simulation directly in a C++ loop, then read outputs and assert them with
assert(). And you can inspect variables by printing them or with GDB. This is infinitely more convenient than doing these IO-type tasks in Verilog itself.Some simulation examples under verilog.
First install Verilator. On Ubuntu:Tested on Verilator 4.038, Ubuntu 22.04.
sudo apt install verilatorRun all examples, which have assertions in them:
cd verilator
make runFile structure is for example:
- verilog/counter.v: Verilog file
- verilog/counter.cpp: C++ loop which clocks the design and runs tests with assertions on the outputs
- verilog/counter.params: gcc compilation flags for this example
- verilog/counter_tb.v: Verilog version of the C++ test. Not used by Verilator. Verilator can't actually run out
_tbfiles, because they do in Verilog IO things that we do better from C++ in Verilator, so Verilator didn't bother implementing them. This is a good thing.
Example list:
- verilog/negator.v, verilog/negator.cpp: the simplest non-identity combinatorial circuit!
- verilog/counter.v, verilog/counter.cpp: sequential hello world. Synchronous active high reset with active high enable signal. Adapted from: www.asic-world.com/verilog/first1.html
- verilog/subleq.v, verilog/subleq.cpp: subleq one instruction set computer with separated instruction and data RAMs
Venture capitalist Updated 2025-07-16
Bibliography:
- Something Ventured (2011) documentary
Venture capital firm Updated 2025-07-16
Scalable Vector Graphics Updated 2025-07-16
Companies have been really slow to support SVG features in their browsers, and that is very saddening: medium.com/@michaelmangial1/introduction-to-scalable-vector-graphics-6450c03e8d2e
You can't drop SVG support for
canvas until there's a way to run untrusted JavaScript on the browser!SVG does have some compatibility annoyances, notably SVG fonts. But we should as a society work to standardize and implement a fix those, the benefits of SVG are just too great!
Examples:
- svg/svg.svg a minimal somewhat sane SVG:
- if the
widthandheightproperties were not given, you get the default 300x150, which seems to be set in the SVG standard:
- if the
- how to add na SVG image to a HTML file:
- svg/svg.html: external image. The included file is svg/svg.svg.
- svg/inline.html: inline.
- svg/billion-laughs.svg
- svg/html.svg
- svg/triangle.svg
- svg/viewBox.svg: this attribute allows you to control the default SVG
svg width=andheight=while keeping the coordinates of the drawing untouched. If theviewBoxaspect ratio differs from the width/height ratio, you likely want to play withpreserveAspectRatio, otherwise you would get white spaces by default on the generated image - CSS with SVG:
- svg/style.svg: inline CSS
- svg/style-external.svg: external CSS with:
<?xml-stylesheet type="text/css" href="svg.css" ?>, see also: stackoverflow.com/questions/18434094/how-to-style-svg-with-external-css- svg/subdir/style-external.html: is the relative CSS relative to the HTML or to the SVG? Answer: to the SVG... OMG. So how to make it work reliably?
- svg/current-color.html and svg/current-color.svg: illustrates
fill="currentColor". Only works for inline SVG however... See also: stackoverflow.com/questions/13000682/how-do-i-have-an-svg-image-inherit-colors-from-the-html-document/13002311
- JavaScript with SVG:
- svg/defs.html hows how
defsworks- svg/defs-external.html tries to include external
defsfrom svg/defs.svg, but that fails like everything else related to external SVGs
- svg/defs-external.html tries to include external
Vacuum vendor Updated 2025-07-16
Ultra-high vacuum Updated 2025-07-16
Uranium 238 decay chain Updated 2025-07-16
Community college (United States) Updated 2025-07-16
Fraternities and sororities Updated 2025-07-16
Group of American universities Updated 2025-07-16
American university Updated 2025-07-16
Unitary group of degree 1 Updated 2025-07-16
Unitary group of degree 2 Updated 2025-07-16
Diffeomorphic to the 3 sphere.
Unit circle Updated 2025-07-16
Special unitary group Updated 2025-07-16
The complex analogue of the special orthogonal group, i.e. the subgroup of the unitary group with determinant equals exactly 1 instead of an arbitrary complex number with absolute value equal 1 as is the case for the unitary group.
Alpha decay Updated 2025-07-16
Most of the helium in the Earth's atmosphere comes from alpha decay, since helium is lighter than air and naturally escapes out out of the atmosphere.
Wiki mentions that alpha decay is well modelled as a quantum tunnelling event, see also Geiger-Nuttall law.
As a result of that law, alpha particles have relatively little energy variation around 5 MeV or a speed of about 5% of the speed of light for any element, because the energy is inversely exponentially proportional to half-life. This is because:
- youtu.be/_f8zeEI0oys?t=796 George Gamow and Edward Condon proposed the quantum tunnelling explanation
- youtu.be/_f8zeEI0oys?t=1725 worked out example that predicts the half-life of polonium-210 based on its emission energy
Beta decay Updated 2025-07-16
Uranium emits them, you can see their mass to charge ratio under magnetic field and so deduce that they are electrons.
Caused by weak interaction TODO why/how.
The emitted electron kinetic energy is random from zero to a maximum value. The rest goes into a neutrino. This is how the neutrino was first discovered/observed indirectly. This is well illustrated in a decay scheme such as Figure "caesium-137 decay scheme".
Gamma ray Updated 2025-07-16
Their energy is very high compared example to more common radiation such as visible spectrum, and there is a neat reason for that: it's because the strong force that binds nuclei is strong so transitions lead to large energy changes.
A decay scheme such as Figure "caesium-137 decay scheme" illustrates well how gamma radiation happens as a byproduct of radioactive decay due to the existence of nuclear isomer.
Gamma rays are pretty cool as they give us insight into the energy levels/different configurations of the nucleus.
They have also been used as early sources of high energy particles for particle physics experiments before the development of particle accelerators, serving a similar purpose to cosmic rays in those early days.
But gamma rays they were more convenient in some cases because you could more easily manage them inside a laboratory rather than have to go climb some bloody mountain or a balloon.
The positron for example was first observed on cosmic rays, but better confirmed in gamma ray experiments by Carl David Anderson.
Enzyme Updated 2025-07-16
For an initial concrete example, consider e. Coli K-12 MG1655 gene thrA.
How Enzymes Work by RCSBProteinDataBank (2017)
Source. Shows in detail how aconitase catalyses the citrate to isocitrate reaction in the citric acid cycle. Glycoprotein Updated 2025-07-16
There are unlisted articles, also show them or only show them.