From f235d8e500e9fd9945d07ed347ccab5214d26eba Mon Sep 17 00:00:00 2001 From: David Li Date: Fri, 25 Dec 2015 10:57:04 -0700 Subject: Add trait for memory interface --- src/isa/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/isa') 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; -- cgit v1.2.3