mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
Code now resides in `docs/source/code_examples`. `CHAPTER_Prog` -> `stubnets` `APPNOTE_011_Design_Investigation` -> `selections` and `show` `resources/PRESENTATION_Intro` -> `intro` `resources/PRESENTATION_ExSyn` -> `synth_flow` `resources/PRESENTATION_ExAdv` -> `techmap`, `macc`, and `selections` `resources/PRESENTATION_ExOth` -> `scrambler` and `axis` Note that generated images are not yet configured to build from the new code locations.
11 lines
212 B
Verilog
11 lines
212 B
Verilog
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
|