Please help me design keypad interface which makes data and control signal using
ID: 3840234 • Letter: P
Question
Please help me design keypad interface which makes data and control signal using verilog.(this circuit will be used for digital calculator project). Data should use 2's complement and range of BCD # is from-9999 to 99999
1)Design the circuit convert BCD into binary code and save at register. If input range is over 99999 or less than -9999, then set overflow on D FF or reset.
2)Operator
AC: 10
Sign +/- :11/12
/(divider):13
*(multiplier):14
-(subtractor):15
+(adder):16
=(return):17 in BCD, and module should delete MSB and save in 4-bit D-FF register
Explanation / Answer
import java.awt.image.BufferedImageFilter;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.management.Descriptor;
import javax.swing.InputMap;
import org.xml.sax.InputSource;
public class AssignReadString {
void readAndDisplay()
{
String path = "file-path";
String line;
String BCS345 = "BCS 345";
File file = new File(path);
FileInputStream inputStream;
BufferedReader rdr = null;
try
{
inputStream = new FileInputStream(file);
rdr = new BufferedReader(new InputStreamReader(inputStream));
while(null != (line = rdr.readLine()))
{
if (line.startsWith(BCS345))
{
System.out.println(line);
line = rdr.readLine();
System.out.println(line);
rdr.close();
return;
}
}
System.out.println(BCS345 + " not found");
rdr.close();
}
catch(IOException iox)
{
System.err.println(iox.getMessage());
}
}
// this function read catalog file named file-path and print all course title having BCS 230 in their description
void bcs230Prereqs()
{
String path = "/Users/kundrar/Documents/workspace/ClosedLab01/habitat.txt";
//Give path in your directory
String line;
String BCS230 = "BCS 230";
File file = new File(path);
FileInputStream inputStream;
BufferedReader rdr = null;
try
{
// creating streams to read file
inputStream = new FileInputStream(file);
rdr = new BufferedReader(new InputStreamReader(inputStream));
// reading file till end
while(null != (line = rdr.readLine()))
{
String title = line;
String decription = rdr.readLine();
// if BCS 230 is in description print title
if (decription.indexOf(BCS230) != -1)
{
System.out.println(title);
}
}
rdr.close();
}
catch(IOException iox)
{
System.err.println(iox.getMessage());
}
}
public static void main(String[] args)
{
AssignReadString asrs = new AssignReadString();
asrs.bcs230Prereqs();
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.