Merge branch 'master' of github.com:cliffordwolf/picorv32

This commit is contained in:
Clifford Wolf 2015-10-13 11:06:40 +02:00
commit 6783abd994
4 changed files with 7 additions and 14 deletions

View File

@ -520,6 +520,10 @@ CPU.
The following commands will build the RISC-V gnu toolchain and libraries for a
pure RV32I target, and install it in `/opt/riscv32i`:
# Ubuntu packages needed:
sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev \
libgmp-dev gawk build-essential bison flex texinfo gperf
sudo mkdir /opt/riscv32i
sudo chown $USER /opt/riscv32i

View File

@ -1,5 +1,5 @@
TOOLCHAIN_PREFIX = riscv64-unknown-elf-
TOOLCHAIN_PREFIX = riscv32-unknown-elf-
all: example.bin

View File

@ -1,3 +1,4 @@
set_io clk J3
set_io LED0 B5
set_io LED1 B4
set_io LED2 A2
@ -6,9 +7,3 @@ set_io LED4 C5
set_io LED5 C4
set_io LED6 B3
set_io LED7 C3
# on-board oscillator (12.0 MHz)
set_io clk_pin J3
# external clock on PIO1_01 (pin 4 on 40 pin header)
#set_io clk_pin R15

View File

@ -1,15 +1,9 @@
`timescale 1 ns / 1 ps
module top (
input clk_pin,
input clk,
output reg LED0, LED1, LED2, LED3, LED4, LED5, LED6, LED7
);
// -------------------------------
// Clock Buffer
wire clk = clk_pin;
// -------------------------------
// Reset Generator