Escolar Documentos
Profissional Documentos
Cultura Documentos
module Traffic
(
input [4:0] nsCounter,
input [3:0] ewCounter,
input [1:0] yellowCounter,
input NS_VEHICLE_DETECT,
input EW_VEHICLE_DETECT,
output reg NS_RED,
output reg NS_YELLOW,
output reg NS_GREEN,
output reg EW_RED,
output reg EW_YELLOW,
output reg EW_GREEN
);
/*
A Counter for the North-South Traffic Light
Counts from 0-31
*/
module nsCounter
(
input clk,
output [4:0] count
);
wire clk;
reg[4:0] count;
initial
count = 0;
endmodule
/*
A Counter for the East-West Traffic Light
Counts from 0-15
*/
module ewCounter
(
input clk,
output [3:0] count
);
wire clk;
reg[3:0] count;
initial
count = 0;
endmodule
/*
A Counter for the common yellow Traffic Light
Counts from 0-3
*/
module yellowCounter
(
input clk,
output [1:0] count
);
wire clk;
reg[1:0] count;
initial
count = 0;
endmodule
SCHEMATIC ENTRY AND SPICE SIMULATION OF CMOS NOT GATE
Procedure:
* Design: adm705-1
* Cell: Cell3
* View: view0
* Exclude .model: no
* Exclude .end: no
* Wrap lines: no
MNMOS_1 Out N_2 Gnd N_1 NMOS W=2.5u L=250n AS=2.25p PS=6.8u AD=2.25p PD=6.8u
MPMOS_1 Out N_2 Vdd N_3 PMOS W=2.5u L=250n AS=2.25p PS=6.8u AD=2.25p PD=6.8u
.print dc v(MNMOS_1,Gnd)
.end
Output responses:
Schematic Diagram:
.end
Output responses:
Result:
The differential amplifier is constructed in Tanner EDA v13.1, the spice code is
generated and wave forms are verified.
FPGA SYNTHESIS, PLACEMENT & ROUTING AND POST-PLACEMENT & ROUTING SIMULATION
OUTPUT WAVEFORM