Skip to content

Instantly share code, notes, and snippets.

View splhack's full-sized avatar

Kazuki Sakamoto splhack

View GitHub Profile
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE history_period_bak (
pk VARCHAR(32),
dt_begin DATE NOT NULL,
dt_end DATE NOT NULL
);
CREATE TABLE frame_history (
diff --git a/cuebot/src/main/resources/conf/ddl/postgres/migrations/V1__Initial_schema.sql b/cuebot/src/main/resources/conf/ddl/postgres/migrations/V1__Initial_schema.sql
index c9d7714..ce78238 100644
--- a/cuebot/src/main/resources/conf/ddl/postgres/migrations/V1__Initial_schema.sql
+++ b/cuebot/src/main/resources/conf/ddl/postgres/migrations/V1__Initial_schema.sql
@@ -17,6 +17,7 @@ CREATE TABLE frame_history (
int_mem_reserved BIGINT DEFAULT 0 NOT NULL,
int_mem_max_used BIGINT DEFAULT 0 NOT NULL,
int_cores INT DEFAULT 100 NOT NULL,
+ int_gpu INT DEFAULT 0 NOT NULL,
str_host VARCHAR(64) DEFAULT NULL,
diff --git a/cuebot/src/main/java/com/imageworks/spcue/service/JobSpec.java b/cuebot/src/main/java/com/imageworks/spcue/service/JobSpec.java
index 1e498ea..51333f2 100644
--- a/cuebot/src/main/java/com/imageworks/spcue/service/JobSpec.java
+++ b/cuebot/src/main/java/com/imageworks/spcue/service/JobSpec.java
@@ -37,6 +37,8 @@ import org.apache.log4j.Logger;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.core.env.Environment;
From fa408f443214c7bdf0396be098d2706fdae2d510 Mon Sep 17 00:00:00 2001
From: Kazuki Sakamoto <sakamoto@splhack.org>
Date: Sat, 6 Feb 2021 15:23:09 -0800
Subject: [PATCH] Remove Oracle and Trackit references
---
.../com/imageworks/spcue/TrackitTaskDetail.java | 40 ----
.../com/imageworks/spcue/config/AppConfig.java | 7 -
.../java/com/imageworks/spcue/dao/TrackitDao.java | 39 ----
.../spcue/service/DepartmentManagerService.java | 66 -------
=================================== FAILURES ===================================
__________________________ test_sequential2_ite_tuple __________________________
def test_sequential2_ite_tuple():
@m.sequential2()
> class Test:
tests/test_syntax/test_sequential2.py:441:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
magma/syntax/sequential2.py:387: in seq_inner
diff --git a/magma/array.py b/magma/array.py
index cc79b8a5..5c05a0a0 100644
--- a/magma/array.py
+++ b/magma/array.py
@@ -10,7 +10,7 @@ from .bit import Bit
from .bitutils import int2seq, seq2int
from .debug import debug_wire, get_callee_frame_info
from .logging import root_logger
-from .protocol_type import magma_type, magma_value
+from .protocol_type import MagmaProtocol, magma_type, magma_value
diff --git a/magma/array.py b/magma/array.py
index cc79b8a5..5c05a0a0 100644
--- a/magma/array.py
+++ b/magma/array.py
@@ -10,7 +10,7 @@ from .bit import Bit
from .bitutils import int2seq, seq2int
from .debug import debug_wire, get_callee_frame_info
from .logging import root_logger
-from .protocol_type import magma_type, magma_value
+from .protocol_type import MagmaProtocol, magma_type, magma_value
tests/test_ice40/test_ramb.py::test_romb_coreir WARNING:magma:'IO = [...]' syntax is deprecated, use 'io = IO(...)' syntax instead
ERROR: Args and params are not the same!
Args: (INIT_0:256'h0000000000000000000000000000000000000000000000000000000000ff0001,
INIT_1:256'h0000000000000000000000000000000000000000000000000000000000000000,
INIT_2:256'h0000000000000000000000000000000000000000000000000000000000000000,
INIT_3:256'h0000000000000000000000000000000000000000000000000000000000000000,
INIT_4:256'h0000000000000000000000000000000000000000000000000000000000000000,
INIT_5:256'h0000000000000000000000000000000000000000000000000000000000000000,
INIT_6:256'h0000000000000000000000000000000000000000000000000000000000000000,
INIT_7:256'h0000000000000000000000000000000000000000000000000000000000000000,
@splhack
splhack / 5A-75B.cfg
Created February 24, 2020 06:51
OpenOCD config for 5A-75B
adapter driver ftdi
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 1
ftdi_layout_init 0x0038 0x003b
adapter speed 500
transport select jtag
jtag newtap lfe5u25 tap -expected-id 0x41111043 -irlen 8 -irmask 0xFF -ircapture 0x5
init
scan_chain
diff --git a/magma/syntax/combinational.py b/magma/syntax/combinational.py
index 3a651fa..ae60506 100644
--- a/magma/syntax/combinational.py
+++ b/magma/syntax/combinational.py
@@ -145,9 +145,15 @@ class FunctionToCircuitDefTransformer(ast.NodeTransformer):
types = [arg.annotation for arg in node.args.args]
IO = []
for name, type_ in zip(names, types):
+ is_inout = False
+ if isinstance(type_, ast.Call):