mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
By adding ivtest to the iverilog source tree, it is easier to keep the regression test synchronized with the source that is being tested. This should be especially helpful for PRs that add a new feature, and have a matching ivtest PR with the regression test for that feature.
24 lines
417 B
Verilog
24 lines
417 B
Verilog
/*
|
|
* This program doesn't do anything, and shouldn't be run. This is
|
|
* only to check that the null target can see the ternary operator.
|
|
*/
|
|
|
|
module main2( );
|
|
|
|
reg sel;
|
|
reg [13:0] out;
|
|
reg [13:0] a, b;
|
|
|
|
// This assign works OK
|
|
// assign out[13:0] = ( sel ? a[13:0] : b[13:0] );
|
|
|
|
always @(
|
|
sel or
|
|
a or
|
|
b
|
|
)
|
|
begin
|
|
out[13:0] = ( sel ? a[13:0] : b[13:0] );
|
|
end
|
|
endmodule
|