This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use kaze::*; | |
use vcd::*; | |
use std::io; | |
use std::{fs::File, io::ErrorKind::InvalidInput}; | |
fn main() -> std::io::Result<()> { | |
let mut file = File::create("foo.vcd")?; | |
// Create a context, which will contain our module(s) | |
let c = Context::new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate regex; | |
use regex::Regex; | |
macro_rules! mask_shift { | |
($v: ident, $m: expr, $s: expr) => { | |
(($v as u32 & $m as u32) >> $s) as u32 | |
} | |
} |