Skip to content

Commit

Permalink
Merge pull request jamesbowman#84 from RGD2/verilator-fixes-2023-09-w…
Browse files Browse the repository at this point in the history
…ith-pyenv-python

Verilator fixes with pyenv python
  • Loading branch information
jamesbowman committed Sep 29, 2023
2 parents 8dbff77 + c4f1116 commit 0c520f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions j1a/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.18
6 changes: 3 additions & 3 deletions j1a/verilator/j1a.v
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module j1a(input wire clk,
/* verilator lint_off UNUSED */
wire [12:0] code_addr;
/* verilator lint_on UNUSED */
wire [15:0] insn;
reg [15:0] insn;

reg [15:0] ram_prog[0:4095] /* verilator public_flat */;
always @(posedge clk) begin
Expand Down Expand Up @@ -57,8 +57,8 @@ module j1a(input wire clk,

// ###### UART ##########################################

wire uart0_wr = io_wr_ & io_addr_[12];
wire uart0_rd = io_rd_ & io_addr_[12];
assign uart0_wr = io_wr_ & io_addr_[12];
assign uart0_rd = io_rd_ & io_addr_[12];
assign uart_w = dout_[7:0];

// always @(posedge clk) begin
Expand Down
3 changes: 2 additions & 1 deletion j1a/verilator/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import struct
import os

sys.path.append("build/lib/python/")
import site
site.addsitedir("build/lib/python/")
import vsimj1a

sys.path.append("../../shell")
Expand Down

0 comments on commit 0c520f0

Please sign in to comment.