Skip to content

Instantly share code, notes, and snippets.

View martian17's full-sized avatar
🛰️
Working from home

Yutaro Yoshii martian17

🛰️
Working from home
View GitHub Profile
a = [
[2,0],
[0,1]
]
def initializeMatrix(m):
newm = []
i = 0
while i < len(m):
@martian17
martian17 / circshift.v
Last active November 8, 2019 14:40
Circular bidirectional barrel shifter
module CIRCSHIFTTEST;
reg[15:0] ia;
reg[3:0] bitcnt;
reg lr;
wire[15:0] ib;
CIRCSHIFT circshift (ia, bitcnt, lr, ib);
initial begin
@martian17
martian17 / arshift.v
Last active November 8, 2019 14:39
Arithmetic bidirectional barrel shifter
module MATHSHIFTTEST;
reg[15:0] ia;
reg[3:0] bitcnt;
reg lr;
wire[15:0] ib;
MATHSHIFT mathshift (ia, bitcnt, lr, ib);
initial begin

Keybase proof

I hereby claim:

  • I am martian17 on github.
  • I am yoshi9265 (https://keybase.io/yoshi9265) on keybase.
  • I have a public key ASB3Pl4SVKDS32BmXsdf2VJJV8bPBjN2EAlqRMYySjtN_Ao

To claim this, I am signing this object: