4-bit Comparator on Xilinx Spartan 3A

 4-bit Comparator on Xilinx Spartan 3A The aim of this experiment is to make familiar with the elementary logic gates while designing 4-bit comparator circuits for unsigned and 2’s complement systems. I will design my circuit using Xilinx ISE software as performed in the first experiment. Then I will simulate…

XOR gate in Xilinx Spartan3A Board

Table of Contents 1. Introduction 2 2. Methodology 2 2.1. Design 2 2.2. Code 2 2.2.1. VHDL code 2 2.2.2. UCF pins 2 2.2.3. VHDL simulation 2 3. Results 3 3.1. Simulation 3 3.2. Board 4 4. Discussion 4 4.1. Problems 4 4.2. Linux Ubuntu 4 5. Conclusion 4 6….

File Operations in C

Task1 Write a program that joins the two sorted files to an output file such that the resulting file is also sorted. Your program should read the names of the files to be joined from the command line, as well as the name of the file which will store the…

Using fprintf() with different format (%*s.*lf)

Writing a program that outputs PI in different formats, as given below (and also in PIs.txt). You can use M_PI from math.h. Codes with fewer lines than 30 will get extra marks (my code is 21 lines excluding comments). Like Bellow Figure. I use the %*s and %*lf format for this…

Printing samples of a sinusoidal signal using C

Samples of a sinusoidal Writing a program that prints samples of a sinusoidal signal at f0 sampled at fsample with peak amplitude A and phase P, for two periods (T0). Take A, f0, P, and fsample from command-line as arguments, as follows: ProgramName A f_0 P_in_radians f_sample (i) An example…

16-Bit CPU on Logisim

  Single Cycle Processor Design ALU Design For the ALU design, Idid not use the built in aritmethic library. Instead Idesigned each tool(adder, subtractor, multiplier and shifter) meyself. Register File   Splitter This unit is responsible for the separation of the opcode, Rs, Rt, Rd, shamt and I[0:15] which determines…

Loop Operation and Recursive Functions in C

Given task; Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 1, the first 10 terms will be: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, … By considering the terms in the Fibonacci sequence whose values…