diff options
author | David Li <li.davidm96@gmail.com> | 2015-12-25 10:57:04 -0700 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2015-12-25 10:57:04 -0700 |
commit | f235d8e500e9fd9945d07ed347ccab5214d26eba (patch) | |
tree | 24d6d9748edd2a61e38d9089450f8cbe096c751b /src/isa | |
parent | 39ce6b062b6d36495098e39dfd813212757ac4f3 (diff) |
Add trait for memory interface
Diffstat (limited to 'src/isa')
-rw-r--r-- | src/isa/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/isa/mod.rs b/src/isa/mod.rs index 49fad10..5458255 100644 --- a/src/isa/mod.rs +++ b/src/isa/mod.rs @@ -4,6 +4,10 @@ pub mod funct7; pub type Word = u32; pub type SignedWord = i32; +pub type HalfWord = u16; +pub type SignedHalfWord = i16; +pub type Byte = u8; +pub type SignedByte = i8; // TODO: directly encode PC as u32, as architecturally specified pub type Address = usize; |