diff options
author | Ahmed Irfan <irfan@ubuntu.(none)> | 2014-01-18 17:29:55 +0100 |
---|---|---|
committer | Ahmed Irfan <irfan@ubuntu.(none)> | 2014-01-18 17:29:55 +0100 |
commit | da8af915522bb8cf47f19f901a8210ff3e2b6118 (patch) | |
tree | da4efbcf700f40024122effa7897be8f3b8acbb8 /techlibs/common/pmux2mux.v | |
parent | 9a689f33a56d4b351bab021989f79e9b19500c62 (diff) | |
parent | bef17eeb109dd2dc4eaba6eb808a0172c0c53265 (diff) | |
download | yosys-da8af915522bb8cf47f19f901a8210ff3e2b6118.tar.gz yosys-da8af915522bb8cf47f19f901a8210ff3e2b6118.tar.bz2 yosys-da8af915522bb8cf47f19f901a8210ff3e2b6118.zip |
pmux2mux
Diffstat (limited to 'techlibs/common/pmux2mux.v')
-rw-r--r-- | techlibs/common/pmux2mux.v | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/techlibs/common/pmux2mux.v b/techlibs/common/pmux2mux.v index 72e97c080..9c97245a1 100644 --- a/techlibs/common/pmux2mux.v +++ b/techlibs/common/pmux2mux.v @@ -13,10 +13,9 @@ output reg [WIDTH-1:0] Y; integer i; always @* begin - Y <= A; - for (i = 0; i < S_WIDTH; i=i+1) - if (S[i]) - Y <= B[WIDTH*i +: WIDTH]; + Y <= A; + for (i = 0; i < S_WIDTH; i=i+1) + if (S[i]) Y <= B[WIDTH*i +: WIDTH]; end endmodule |