Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm learning how to use Verilog and need help on how to fill in the module and testbench! In Verilog, implement a simple 3-SAT detection

image text in transcribedimage text in transcribedimage text in transcribedI'm learning how to use Verilog and need help on how to fill in the module and testbench!

In Verilog, implement a simple 3-SAT detection circuit that will indicate whether a given conjunctive normal form function is satisfiable or not. The functions are to be defined as modules, where the number of input variables is 3 . Given the module Formula, complete module SolveFormula using the following global inputs/ outputs: a.clk: 1-bit input that will be driven by the board's 100Mhz clock b.reset: 1-bit input that will serve as the reset to the synchronous logic c.in: 1-bit input that will be driven by the output value of the CNF function d.RGB: 3-bit output that will drive one of the onboard RGB LEDs. e.LED: 3-bit output that will drive 3 different LEDs to display the solution. f.solution: 3-bit output that will drive inputs A, B, and C of the Formula module. Module SolveFormula contains the logic for iterating through all the input values possible to module Formula, and will check if the current input value is a solution to the function (satisfiable). This module will also provide the signals that will control an RGB LED (to display either Red for UNSAT or green for SAT), and 3 of the onboard LEDs (to display one of the expressions that satisfies the function). The logic within this module must be synchronous (clocked). Then, create a testbench for SolveFormula to verify its functionality through simulation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

3. You can gain power by making others feel important.

Answered: 1 week ago