Skip to content

Commit

Permalink
make ALU combinational logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-mug committed Nov 28, 2023
1 parent 2e9fbf0 commit 20ab47f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/alu.sv
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
`timescale 1ns / 1ps

module alu (
input rst_n,
input clk,
input [2:0] inst,
input [31:0] a,
input [31:0] b,
Expand Down
7 changes: 0 additions & 7 deletions test/test_alu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,10 @@
#include <random>

void ValuForTest::exec(const int &_inst, const int &_a, const int &_b) {
rst_n = 1;
clk = 0;

inst = _inst;
a = _a;
b = _b;
eval();

// positive edge
clk = 1;
eval();
}

class TestAlu : public ::testing::Test {
Expand Down

0 comments on commit 20ab47f

Please sign in to comment.