Would Result Udata Sdata Shifting Two Times Right Q37036231

What would be the result of udata, and sdata after shifting twotimes to right?

module example_1); logic logic signed [5:0] sdata;; [5:0] udata;; initial begin Ssystem (clear: echo; echo) udata6b111000

module example_1); logic logic signed [5:0] sdata;; [5:0] udata;; initial begin Ssystem (“clear: echo; echo”) udata6’b111000 sdata = 6″b111000; $display (“Unsigned data: Original $display (“signed data: original $display (“signed data: original #100; Ssystem (“echoi echoi echo”) Sfinish; %d, %d, %d, shifted Shifted shifted %d”, %d”, %d”, udata, sdata , sdata , udata»: ); sdata>>2 ); sdata>>>2 ); end endmodule Show transcribed image text module example_1); logic logic signed

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.