In this assignment I learned to make code in system C.
Most of the code was already provided in “Source code adapted from “SystemC Training: The Definitive Guide to SystemC” by Doulos Ltd., 2015”.
I made mon.h and mon.cpp and checked this and tested on the 8 vectors.
I had to adjust the clock set like in stimulus it had clk.pos() and in monitor I had to use clk.neg().
I also added print of the A input, B input and F input/output.
This validates that the input of A and input B is compared with the value of F.
At the end, I added sc_stop so that the value gets out of the system.