Skip to content

Instantly share code, notes, and snippets.

@hikalium
Last active July 9, 2017 23:59
Show Gist options
  • Save hikalium/a721e6dba19550d573f0df787df92993 to your computer and use it in GitHub Desktop.
Save hikalium/a721e6dba19550d573f0df787df92993 to your computer and use it in GitHub Desktop.
module check();
reg signed [15:0] a,b,c;
initial begin
b = 16'hffdd; // -35
c = 16'h02;
a = b >>> c; // c will be -9 = 16'fff7
$display("%x", a);
$finish;
end
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment