projects
/
Mograsim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
57c2150e3c67a2f794697f39e3fee014e5a24b3c
[Mograsim.git]
/
SimpleRegister.java
1
package net.mograsim.machine.registers;
2
3
public class SimpleRegister implements Register
4
{
5
private final String id;
6
private final int width;
7
8
public SimpleRegister(String id, int width)
9
{
10
this.id = id;
11
this.width = width;
12
}
13
14
@Override
15
public String id()
16
{
17
return id;
18
}
19
20
@Override
21
public int getWidth()
22
{
23
return width;
24
}
25
}