- {format!("{code:08x}")}
+ key=|(i, _)| *i
+ let:child
+ >
+
+ {child.1}
-
- {match i_type {
- Some(InstType::RType(r_type)) => {
- view! {
- <>
-
- "f7"
-
-
- "rs2"
-
-
- "rs1"
-
-
- "f3"
-
-
- "rd"
-
-
- "opcode"
-
- >
- }
+
+
+
+
+
+ {format!("{code:08x}")}
+
+
+ {match i_type {
+ Some(InstType::RType(r_type)) => {
+ view! {
+ <>
+
+ "f7"
+
+
+ "rs2"
+
+
+ "rs1"
+
+
+ "f3"
+
+
+ "rd"
+
+
+ "opcode"
+
+ >
}
- Some(InstType::IType(i_type)) => {
- view! {
- <>
-
- "imm"
-
-
- "rs1"
-
-
- "f3"
-
-
- "rd"
-
-
- "opcode"
-
- >
- }
+ }
+ Some(InstType::IType(i_type)) => {
+ view! {
+ <>
+
+ "imm"
+
+
+ "rs1"
+
+
+ "f3"
+
+
+ "rd"
+
+
+ "opcode"
+
+ >
}
- Some(InstType::SType(s_type)) => {
- view! {
- <>
-
- "imm"
-
-
- "rs2"
-
-
- "rs1"
-
-
- "f3"
-
-
- "imm"
-
-
- "opcode"
-
- >
- }
+ }
+ Some(InstType::SType(s_type)) => {
+ view! {
+ <>
+
+ "imm"
+
+
+ "rs2"
+
+
+ "rs1"
+
+
+ "f3"
+
+
+ "imm"
+
+
+ "opcode"
+
+ >
}
- Some(InstType::BType(b_type)) => {
- view! {
- <>
-
- "imm"
-
-
- "rs2"
-
-
- "rs1"
-
-
- "f3"
-
-
- "imm"
-
-
- "opcode"
-
- >
- }
+ }
+ Some(InstType::BType(b_type)) => {
+ view! {
+ <>
+
+ "imm"
+
+
+ "rs2"
+
+
+ "rs1"
+
+
+ "f3"
+
+
+ "imm"
+
+
+ "opcode"
+
+ >
}
- Some(InstType::UType(u_type)) => {
- view! {
- <>
-
- "imma"
-
-
- "rd"
-
-
- "opcode"
-
- >
- }
+ }
+ Some(InstType::UType(u_type)) => {
+ view! {
+ <>
+
+ "imma"
+
+
+ "rd"
+
+
+ "opcode"
+
+ >
}
- Some(InstType::JType(j_type)) => {
- view! {
- <>
-
- "imm"
-
-
- "rd"
-
-
- "opcode"
-
- >
- }
+ }
+ Some(InstType::JType(j_type)) => {
+ view! {
+ <>
+
+ "imm"
+
+
+ "rd"
+
+
+ "opcode"
+
+ >
}
- None => {
- view! {
- <>
-
- "unknown"
-
- >
- }
+ }
+ None => {
+ view! {
+ <>
+
+ "unknown"
+
+ >
}
- }}
-
-
+ }
+ }}