Escolar Documentos
Profissional Documentos
Cultura Documentos
J.SWAPNA
201532548
VERILOG CODE FOR ALU
// design of ALU using mux
module alumux( input [3:0]a,
input [3:0]b,
input [2:0]si,
output reg[7:0]z );
always @(a or b or si)
begin
case(si)
3'b000: z<=a&b;
3'b001: z<=a|b;
3'b010: z<=~a;
3'b011: z<=~b;
3'b100: z<=a<<b;
3'b101: z<=a>>b;
3'b110: z<=a+b;
3'b111: z<=a-b;
endcase
end
endmodule
SIMULATION OUTPUT
RTL SCHEMATIC
SYNTHESIS REPORT
==============================================
===========================
---- Source Parameters
Input File Name
: "alumux.prj"
: "alumux"
: NGC
: xc7a8-3-csg324
: alumux
: YES
: Auto
Safe Implementation
FSM Style
RAM Extraction
RAM Style
ROM Extraction
: No
: LUT
: Yes
: Auto
: Yes
: YES
: Auto
Resource Sharing
: YES
Asynchronous To Synchronous
: NO
:2
: Auto
: No
: Auto
: Auto
: YES
: 100000
: 32
: YES
: Auto
: Auto
: Auto
: Auto
: YES
: Speed
Optimization Effort
:1
Power Reduction
: NO
Keep Hierarchy
: No
Netlist Hierarchy
: As_Optimized
RTL Output
: Yes
Global Optimization
Read Cores
: AllClockNets
: YES
: NO
: NO
Hierarchy Separator
:/
Bus Delimiter
: <>
Case Specifier
: Maintain
: 100
: 100
: 100
: NO
:5
HDL Synthesis
==============================================
===========================
Synthesizing Unit <alumux>.
Related source file is "c:/xilinx/alu/alumux.v".
Found 5-bit subtractor for signal <GND_1_o_GND_1_o_sub_8_OUT>
created at line 39.
Found 5-bit adder for signal <n0035[4:0]> created at line 38.
Found 8-bit shifter logical left for signal <GND_1_o_b[3]_shift_left_4_OUT>
created at line 36
:2
:1
5-bit subtractor
:1
# Multiplexers
:3
:2
:1
# Logic shifters
:2
:1
:1
==============================================
===========================
Design Summary
==============================================
===========================
: alumux.ngc
: 48
LUT2
:4
LUT3
:3
LUT4
:7
LUT5
:6
LUT6
: 23
MUXF7
:5
# IO Buffers
: 19
IBUF
: 11
OBUF
:8
43 out of 5000
0%
43 out of 5000
0%
43
43 out of
43 100%
0 out of
43
0%
0 out of
43
0%
IO Utilization:
Number of IOs:
19
19 out of
200
9%
==============================================
===========================
Timing Report
GENERATED AFTER PLACE-and-ROUTE.
Clock Information:
-----------------No clock signals found in this design
Asynchronous Control Signals Information:
---------------------------------------No asynchronous control signals found in this design
Timing Summary:
--------------Speed Grade: -3
Minimum period: No path found
Minimum input arrival time before clock: No path found
Maximum output required time after clock: No path found
Maximum combinational path delay: 2.949ns
Timing Details:All values displayed in nanoseconds (ns)
==============================================
===========================
Timing constraint: Default path analysis
Total number of paths / destination ports: 276 / 8
------------------------------------------------------------------------Delay:
Source:
Destination:
Net
---------------------------------------- -----------IBUF:I->O
LUT6:I0->O
LUT6:I0->O
LUT3:I0->O
LUT6:I5->O
OBUF:I->O
0.000
z_0_OBUF (z<0>)
---------------------------------------Total