System Verilog OOP: encapsulation, inheritance, and polymorphism
1. Three basic characteristics of object-oriented
Object: everything is an object Class: a class is an abstract collection of objects with the same properties and behavior Instance: an object is an instance of a class Encapsulation can hide the implementation details and make the code modular; Inheritance can extend existing code modules, ...
Posted by 9911782 on Mon, 06 Dec 2021 12:16:05 -0800
Spin HDL - 09 - timing logic
Registers
Creating registers with SpinalHDL is very different from creating registers with VHDL or Verilog. In SpinalHDL, there is no process / always blocking. Registers are clearly defined in the declaration. This is very different from the traditional event driven HDL:
You can allocate registers and connections in the same range, which me ...
Posted by Terminator on Mon, 29 Nov 2021 03:05:48 -0800