Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
module MaxProgram(
input [31:0] a,
input [31:0] b,
output reg [31:0] max
);
always @(*) begin
if(a > b) max = a;
else max = b;
end
endmoduleCoding works best on desktop or with an external keyboard.
module MaxProgram(
input [31:0] a,
input [31:0] b,
output reg [31:0] max
);
always @(*) begin
if(a > b) max = a;
else max = b;
end
endmoduleCoding works best on desktop or with an external keyboard.
Finds the maximum of two numbers.
module MaxProgram(
input [31:0] a,
input [31:0] b,
output reg [31:0] max
);
always @(*) begin
if(a > b) max = a;
else max = b;
end
endmoduleVerilog is a hardware description language (HDL) used to model, simulate, and design digital circuits such as CPUs, FPGAs, ASICs, and SoCs. Known for its C-like syntax, simplicity, and dominance in commercial chip design.
Origin & Creator
Developed in 1984 by Phil Moorby at Gateway Design Automation; standardized as IEEE 1364.
Industrial Note
Verilog powers most commercial semiconductor chips - including CPUs, GPUs, networking ASICs, and FPGA IP cores.