Chapter3
Chapter3
Basic Concept
教師: 陳銘志
input [1:width] a, b;
output [1:width] c;
`include “or8.v”
assign c = a | b; module or4(a, b, c);
parameter size = 4;
endmodule input [1:size] a, b;
output [1:size] c;
endmodule
//Display x characters
//Display value of 4-bit bus 10xx (signal contention) in binary
reg [3:0] bus;
$display("Bus value is %b", bus);
-- Bus value is 10xx
Usage:
$monitoron;
…………..
$monitoroff;