{"repo":"dpretet/svlogger","free":true,"listed":false,"github":"https://github.com/dpretet/svlogger","clone":"git clone https://github.com/dpretet/svlogger.git","description":"SystemVerilog Logger","language":"SystemVerilog","stars":19,"topics":["verilog","systemverilog","fpga","asic","logging","logger","class","simulation","hdl","icarus"],"license":"MIT","category":"analytics","readme_excerpt":"SVLogger A SystemVerilog logger to help designers to log events in a circuit during a simulation in a consistent way. SVLogger is a simple class, easy to instantiate and use, with no dependencies. Setup Just include in source file: and into the fileset: Please notice this project has been developed and tested with Icarus Verilog 11 and Verilator 5. It can't work with oldest versions. SVlogger could probably work with other (commercial) simulators but it never has been tested oustide iverilog and verilator scope. How to First instantiate and setup it in a module: Then call a function to print a message: A complete example of svlogger usage is present in example folder. The class is setup with three arguments: - name : the identifier printed first in the log associated to the module under debug. - verbosity : 0 deactivate all logs, upper values define the filtering level of the logging. - route : 1 print in console, 2 print in a log file (name.log), 3 in both. Five functions are available to print a message by severity level: - ⬜️ debug , printed in white - 🟦 info , printed in blue - 🟨 warning , printed in yellow - 🟪 critical , printed in pink - 🟥 error , printed in red Another function named msg is available to print a message without prepended severity prefix. If verbosity is 0, no messages are logged. If equal to 1, everything is logged. If verbosity=2, only info, warning, critical and errors and so on until 5. All logs below the verbosity are discarded, all above are lo","default_branch":null,"files":null,"tree":[],"storefront":"/r/dpretet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dpretet/svlogger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}