X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/26d9a24fde920429add603b9d893787c41903477..8f4d42b0ad9118ef51efeaa3c4f53a3b7b4ae752:/doc/sandbox.mdwn diff --git a/doc/sandbox.mdwn b/doc/sandbox.mdwn index f761c45ec..347f2e590 100644 --- a/doc/sandbox.mdwn +++ b/doc/sandbox.mdwn @@ -118,9 +118,6 @@ Test some tags [[!tag tech life linux]] [[!taglink tech life linux]] -A poll: -[[!poll 6 "red" 3 "green" 2 "blue" 3 "purple"]] - Toggle: [[!toggle id="ipsum" text="show"]] @@ -138,5 +135,24 @@ This **SandBox** is also a [[blog]]! xxx [[!inline pages="sandbox/* and !*/Discussion" rootpage="sandbox" show="4" archive="yes"]]a +[[!format verilog """ +module vc_Mux2 #( parameter W = 1 ) +( + input [W-1:0] in0, in1, + input sel, + output reg [W-1:0] out +); + + always @(*) + begin + case ( sel ) + 1'd0 : out = in0; + 1'd1 : out = in1; + default : out = {W{1'bx}}; + endcase + end + +endmodule +"""]]