mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-27 13:39:49 +00:00
More progress on AppNote 011
This commit is contained in:
parent
0e52f3fa01
commit
9595eca181
4 changed files with 122 additions and 5 deletions
9
manual/APPNOTE_011_Design_Investigation/splice.v
Normal file
9
manual/APPNOTE_011_Design_Investigation/splice.v
Normal file
|
@ -0,0 +1,9 @@
|
|||
module splice_demo(a, b, c, d, e, f, x, y);
|
||||
|
||||
input [1:0] a, b, c, d, e, f;
|
||||
output [1:0] x = {a[0], a[1]};
|
||||
|
||||
output [11:0] y;
|
||||
assign {y[11:4], y[1:0], y[3:2]} = {a, b, -{c, d}, ~{e, f}};
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue