Skip to content

Commit b2856be

Browse files
Fixed a bug
1 parent de3ea97 commit b2856be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/syntesizable/ram.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SC_MODULE (Memory) {
77
enum Function {
88
FUNC_NONE,
99
FUNC_READ,
10-
FUNC_WRITE
10+
FUNC_WRITE
1111
};
1212

1313
enum RETSignal {
@@ -25,7 +25,7 @@ SC_MODULE (Memory) {
2525

2626
SC_CTOR (Memory) {
2727
SC_METHOD(execute);
28-
sensitive_neg(Port_CLK);
28+
sensitive << Port_CLK;
2929
m_clkCnt = 0;
3030
m_curAddr = 0;
3131
m_curData = 0;

0 commit comments

Comments
 (0)