mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 13:04:28 +00:00
20 lines
286 B
Systemverilog
20 lines
286 B
Systemverilog
// xz.sv
|
|
// David_Harris@hmc.edu 30 January 2022
|
|
// Demonstrate impact of x and z.
|
|
|
|
// load with vsim xz.sv
|
|
|
|
module xz(
|
|
output logic w, x, y, z);
|
|
|
|
logic p, q, r;
|
|
|
|
// let p be undriven
|
|
assign q = 1'bz;
|
|
assign r = 1'bx;
|
|
|
|
assign w = q & 1'b1;
|
|
assign x = q | 1'b1;
|
|
endmodule
|
|
|