-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #790 from diffblue/multiplexer1
Verilog: grammar for combinational UDPs
- Loading branch information
Showing
3 changed files
with
140 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CORE | ||
multiplexer1.sv | ||
--bound 0 --module main | ||
^no properties$ | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// 1800-2017 29.4 | ||
primitive multiplexer (mux, control, dataA, dataB); | ||
output mux; | ||
input control, dataA, dataB; | ||
table | ||
// control dataA dataB mux | ||
0 1 0 : 1 ; | ||
0 1 1 : 1 ; | ||
0 1 x : 1 ; | ||
0 0 0 : 0 ; | ||
0 0 1 : 0 ; | ||
0 0 x : 0 ; | ||
1 0 1 : 1 ; | ||
1 1 1 : 1 ; | ||
1 x 1 : 1 ; | ||
1 0 0 : 0 ; | ||
1 1 0 : 0 ; | ||
1 x 0 : 0 ; | ||
x 0 0 : 0 ; | ||
x 1 1 : 1 ; | ||
endtable | ||
endprimitive | ||
|
||
module main; | ||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters