Skip to main content

Posts

Showing posts from November, 2021

Automatic Sudoku solver with SystemVerilog

Hello,  You have been heard of sudoku as a great puzzle where we have to place numbers in a square using the rules - like unique row, unique column, and unique sub-square... What about solving it just like that? Yeah, you can now automate the sudoku using the hardware language - "SystemVerilog"...! SystemVerilog is a hardware language to program the electronic circuits and to test them as well - The other hardware language are Verilog and VHDL (You can refer here a brief tabulated version of differences between all the three here ) SystemVerilog is like an updated version of Verilog; Hence, in industry VHDL or SystemVerilog are preferred to Verilog... Okay, how SystemVerilog helps to solve Sudoku? In the SystemVerilog, there is a feature to randomize the given values; but that's not yet - we can control the randomization with a feature called  "Constraints" Briefly, these constraints help the randomization stick to given conditions, like:- 1. The values should b