Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Digital circuit design & System Verilog In mathematics, linear programming specifically refers to the optimization problem where both the objective function and constraints are linear.
Digital circuit design & System Verilog
In mathematics, linear programming specifically refers to the optimization problem where both the objective function and constraints are linear. This exam requires everyone to complete an integer linear programming circuit to find the optimal integer solution that satisfies the constraints.
Any linear programming problem can be expressed in the following form:
The circuit designed in this question computes a twodimensional linear programming problem with six constraints using variables and and finds the maximum value of the objective function where and are both integers. Thus, in the above expression represents the coefficients of the objective function; A is a times matrix, where the first and second rows represent the coefficients of the and variables for the constraints.
For example, consider the following linear programming problem:
Objective function:
Constraints:
In this example, applying expression
The circular points in the graph represent integer solutions that satisfy the constraints. The objective function has a maximum value of at x
In this question, each input from the pattern includes four sets similar to the example provided. These will define a rectangular region of constraints on the twodimensional coordinate system. The length and width of this rectangular region will not exceed and the upper and lower bounds of and will not exceed pm
All intersection of constraints provided by the pattern will have a nonempty solution set, ie there will always be a solution.
Inputs and Outputs:
Each input from the pattern will raise invalid and provide values to ina ina inb for cycles. In the first cycle, ina and ina will provide the coefficients and of the objective function, while inb will be In the subsequent cycles to ina will input the coefficients of for the six constraints, ina will input the coefficients of for the six constraints, and inb will input b
Note that the order of inputting the six constraints in cycles to is random. For example, the order of constraints input might vary as shown in different figures but will still represent the same linear programming problem.
When outputting the result, outvalid will be raised, and outmaxvalue will output the maximum value of the objective function for the solution that satisfies the constraints and where and are integers, lasting for cycle.
Hint:
Since the question seeks integer solutions for and and four constraints frame a rectangle not exceeding x you can enumerate all integer coordinates within the rectangular range and check the remaining two constraints to find the optimal solution that satisfies the conditions.
Specifications:
Top module name: LP File name: LPsv
After asynchronous negativeedge reset, all output signals must be reset to zero.
Outputs must be provided within cycles after the end of input.
Output should only be provided for cycle, neither more nor less.
The next input will be sent to cycles after outvalid is pulled down.
The SYN result cannot have errors and must not have any latches.
The slack in the timing report must be nonnegative, and the result must be Met.
There should be no timing violations in the gatelevel simulation.
Clock period is ns
Input delay clock period; Output delay clock period
Do not use errorlatchcongratulation or fail as logicwireregsubmoduleparameter names, otherwise, the demo result will be fail.
Note: represents any symbol before or after the word, for example: errortest is prohibited.
Please write your system Verilog code in the logic declaration and your design block in the below picture.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started